From: Robin Appelman Date: Fri, 15 Feb 2013 02:20:02 +0000 (+0100) Subject: Fix quotes in OC_User::isEnabled X-Git-Tag: v5.0.0beta1~38^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab70f9bd2592ec15ac16a4e388d54e3eb2c3d662;p=nextcloud-server.git Fix quotes in OC_User::isEnabled this broke login --- diff --git a/lib/user.php b/lib/user.php index 35b259550f8..e69fef95a13 100644 --- a/lib/user.php +++ b/lib/user.php @@ -608,8 +608,8 @@ class OC_User { * @return bool */ public static function isEnabled($userid) { - $sql = "SELECT `userid` FROM `*PREFIX*preferences`' - .' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND `configvalue` = ?"; + $sql = 'SELECT `userid` FROM `*PREFIX*preferences`' + .' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND `configvalue` = ?'; $stmt = OC_DB::prepare($sql); if ( ! OC_DB::isError($stmt) ) { $result = $stmt->execute(array($userid, 'core', 'enabled', 'false'));