]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix quotes in OC_User::isEnabled
authorRobin Appelman <icewind@owncloud.com>
Fri, 15 Feb 2013 02:20:02 +0000 (03:20 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 15 Feb 2013 02:20:02 +0000 (03:20 +0100)
this broke login

lib/user.php

index 35b259550f8f06c09aa508be7565a7c7dda42d67..e69fef95a1383215717a215319bf8979881aceff 100644 (file)
@@ -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'));