summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-04-29 12:25:27 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-05-22 13:59:07 +0200
commiteceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9 (patch)
tree1bc89bd6cc323d864b5035c497d69436470e2e9a /lib/user.php
parent1b68c0c0cdf1fb68149efd18e661be0a38bcfd62 (diff)
downloadnextcloud-server-eceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9.tar.gz
nextcloud-server-eceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9.zip
add debug output
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php
index b607874afaf..78f5edfb5f6 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -609,7 +609,7 @@ class OC_User {
*/
public static function isEnabled($userid) {
$sql = 'SELECT `userid` FROM `*PREFIX*preferences`'
- .' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND `configvalue` = ?';
+ .' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND to_char(`configvalue`) = ?';
$stmt = OC_DB::prepare($sql);
if ( ! OC_DB::isError($stmt) ) {
$result = $stmt->execute(array($userid, 'core', 'enabled', 'false'));