diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-04-29 12:25:27 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-05-22 13:59:07 +0200 |
commit | eceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9 (patch) | |
tree | 1bc89bd6cc323d864b5035c497d69436470e2e9a /lib/app.php | |
parent | 1b68c0c0cdf1fb68149efd18e661be0a38bcfd62 (diff) | |
download | nextcloud-server-eceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9.tar.gz nextcloud-server-eceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9.zip |
add debug output
Diffstat (limited to 'lib/app.php')
-rw-r--r-- | lib/app.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php index 55b4543ec9f..0a7069ca60c 100644 --- a/lib/app.php +++ b/lib/app.php @@ -173,8 +173,11 @@ class OC_App{ } $apps=array('files'); $query = OC_DB::prepare( 'SELECT `appid` FROM `*PREFIX*appconfig`' - .' WHERE `configkey` = \'enabled\' AND `configvalue`=\'yes\'' ); + .' WHERE `configkey` = \'enabled\' AND to_char(`configvalue`)=\'yes\'' ); $result=$query->execute(); + if( \OC_DB::isError($result)) { + throw new DatabaseException($result->getMessage(), $query); + } while($row=$result->fetchRow()) { if(array_search($row['appid'], $apps)===false) { $apps[]=$row['appid']; |