summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-21 21:29:18 +0000
committerBrice Maron <brice@bmaron.net>2012-06-21 21:29:18 +0000
commitf46623da6cff1019ccce2adc61ea293e49a6fb34 (patch)
tree873409dd7fc27d439ff5257acb38207e0a51dad7 /lib/app.php
parent95b52028936459800eee8db05bc24c813ccc7c67 (diff)
downloadnextcloud-server-f46623da6cff1019ccce2adc61ea293e49a6fb34.tar.gz
nextcloud-server-f46623da6cff1019ccce2adc61ea293e49a6fb34.zip
Do not search apps if oc is not yet installed
Diffstat (limited to 'lib/app.php')
-rwxr-xr-xlib/app.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php
index 1a2dc370d69..071ac83b4f2 100755
--- a/lib/app.php
+++ b/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();