Merge pull request #1713 from owncloud/fix-user-enabled

Fix quotes in OC_User::isEnabled
This commit is contained in:
Thomas Müller 2013-02-14 20:38:31 -08:00
commit 92744be2dc
1 changed files with 2 additions and 2 deletions

View 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'));