Do not search apps if oc is not yet installed

remotes/origin/stable45
Brice Maron 13 years ago
parent 95b5202893
commit f46623da6c
  1. 2
      lib/app.php

@ -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();

Loading…
Cancel
Save