Do not search apps if oc is not yet installed
This commit is contained in:
parent
95b5202893
commit
f46623da6c
|
@ -143,6 +143,8 @@ class OC_App{
|
||||||
* get all enabled apps
|
* get all enabled apps
|
||||||
*/
|
*/
|
||||||
public static function getEnabledApps(){
|
public static function getEnabledApps(){
|
||||||
|
if(!OC_Config::getValue('installed', false))
|
||||||
|
return array();
|
||||||
$apps=array('files');
|
$apps=array('files');
|
||||||
$query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = \'enabled\' AND configvalue=\'yes\'' );
|
$query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = \'enabled\' AND configvalue=\'yes\'' );
|
||||||
$result=$query->execute();
|
$result=$query->execute();
|
||||||
|
|
Loading…
Reference in New Issue