summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.php')
-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;
}