mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Fix quotes in OC_User::isEnabled
this broke login
This commit is contained in:
parent
b169073169
commit
ab70f9bd25
1 changed files with 2 additions and 2 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue