summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-15 03:20:02 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-15 03:20:02 +0100
commitab70f9bd2592ec15ac16a4e388d54e3eb2c3d662 (patch)
tree6fe6cfc7aa5239b8dd86a57bef18ae3733705a41 /lib/user.php
parentb169073169ff7fc723ccbb1c0edd61556af8cd4e (diff)
downloadnextcloud-server-ab70f9bd2592ec15ac16a4e388d54e3eb2c3d662.tar.gz
nextcloud-server-ab70f9bd2592ec15ac16a4e388d54e3eb2c3d662.zip
Fix quotes in OC_User::isEnabled
this broke login
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php4
1 files changed, 2 insertions, 2 deletions
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'));