From 9e03ea4a282c97cf734d01b323e9e5a2c2b37c40 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 3 May 2012 20:47:18 +0200 Subject: [PATCH] ensure the files app is always loaded --- lib/app.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/app.php b/lib/app.php index 2917fd7a57..c8d3826bca 100644 --- a/lib/app.php +++ b/lib/app.php @@ -125,11 +125,13 @@ class OC_App{ * get all enabled apps */ public static function getEnabledApps(){ - $apps=array(); + $apps=array('files'); $query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = \'enabled\' AND configvalue=\'yes\'' ); $result=$query->execute(); while($row=$result->fetchRow()){ - $apps[]=$row['appid']; + if(array_search($row['appid'],$apps)===false){ + $apps[]=$row['appid']; + } } return $apps; }