Skip to content
Snippets Groups Projects
Commit ab70f9bd authored by Robin Appelman's avatar Robin Appelman
Browse files

Fix quotes in OC_User::isEnabled

this broke login
parent b1690731
No related branches found
No related tags found
No related merge requests found
...@@ -608,8 +608,8 @@ class OC_User { ...@@ -608,8 +608,8 @@ class OC_User {
* @return bool * @return bool
*/ */
public static function isEnabled($userid) { public static function isEnabled($userid) {
$sql = "SELECT `userid` FROM `*PREFIX*preferences`' $sql = 'SELECT `userid` FROM `*PREFIX*preferences`'
.' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND `configvalue` = ?"; .' WHERE `userid` = ? AND `appid` = ? AND `configkey` = ? AND `configvalue` = ?';
$stmt = OC_DB::prepare($sql); $stmt = OC_DB::prepare($sql);
if ( ! OC_DB::isError($stmt) ) { if ( ! OC_DB::isError($stmt) ) {
$result = $stmt->execute(array($userid, 'core', 'enabled', 'false')); $result = $stmt->execute(array($userid, 'core', 'enabled', 'false'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment