]> source.dussan.org Git - nextcloud-server.git/commitdiff
ensure the files app is always loaded
authorRobin Appelman <icewind@owncloud.com>
Thu, 3 May 2012 18:47:18 +0000 (20:47 +0200)
committerRobin Appelman <icewind@owncloud.com>
Thu, 3 May 2012 18:47:18 +0000 (20:47 +0200)
lib/app.php

index 2917fd7a572a775f026428ff24c6aa284fcb9fe3..c8d3826bca50f9c7590dc35b036dc13258dbdd49 100644 (file)
@@ -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;
        }