summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-03 20:47:18 +0200
committerRobin Appelman <icewind@owncloud.com>2012-05-03 20:47:18 +0200
commit9e03ea4a282c97cf734d01b323e9e5a2c2b37c40 (patch)
treea6944d8320733e7fef30ac748052d49d4f5a3496 /lib
parent8076b1e12dec3e3861b7024c74873ea330d052c3 (diff)
downloadnextcloud-server-9e03ea4a282c97cf734d01b323e9e5a2c2b37c40.tar.gz
nextcloud-server-9e03ea4a282c97cf734d01b323e9e5a2c2b37c40.zip
ensure the files app is always loaded
Diffstat (limited to 'lib')
-rw-r--r--lib/app.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/app.php b/lib/app.php
index 2917fd7a572..c8d3826bca5 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -125,11 +125,13 @@ class OC_App{
* get all enabled apps
*/
public static function getEnabledApps(){
- $apps=array();
+ $apps=array('files');
$query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = \'enabled\' AND configvalue=\'yes\'' );
$result=$query->execute();
while($row=$result->fetchRow()){
- $apps[]=$row['appid'];
+ if(array_search($row['appid'],$apps)===false){
+ $apps[]=$row['appid'];
+ }
}
return $apps;
}