Do not search apps if oc is not yet installed

This commit is contained in:
Brice Maron 2012-06-21 21:29:18 +00:00
parent 95b5202893
commit f46623da6c
1 changed files with 2 additions and 0 deletions

View File

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