Skip to content
Snippets Groups Projects
Unverified Commit cbcf072b authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Revert "Make sure MySQL is not saying 'this' = 'this ' is true"

parent 48a8f0a4
No related branches found
No related tags found
No related merge requests found
......@@ -52,12 +52,4 @@ class MySqlExpressionBuilder extends ExpressionBuilder {
$y = $this->helper->quoteColumnName($y);
return $this->expressionBuilder->comparison($x, ' COLLATE ' . $this->charset . '_general_ci LIKE', $y);
}
public function eq($x, $y, $type = null) {
return 'BINARY ' . parent::eq($x, $y, $type);
}
public function neq($x, $y, $type = null) {
return 'BINARY ' . parent::neq($x, $y, $type);
}
}
......@@ -188,7 +188,7 @@ class Manager extends PublicEmitter implements IUserManager {
*/
public function userExists($uid) {
$user = $this->get($uid);
return $user !== null && $user->getUID() === $uid;
return ($user !== null);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment