]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not search apps if oc is not yet installed
authorBrice Maron <brice@bmaron.net>
Thu, 21 Jun 2012 21:29:18 +0000 (21:29 +0000)
committerBrice Maron <brice@bmaron.net>
Thu, 21 Jun 2012 21:29:18 +0000 (21:29 +0000)
lib/app.php

index 1a2dc370d69149bde01530941cd273644900edf0..071ac83b4f299cb60122b0d81042267bdaf39229 100755 (executable)
@@ -143,6 +143,8 @@ class OC_App{
         * get all enabled apps
         */
        public static function getEnabledApps(){
+               if(!OC_Config::getValue('installed', false))
+                       return array();
                $apps=array('files');
                $query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = \'enabled\' AND configvalue=\'yes\'' );
                $result=$query->execute();