Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,4 @@ public function iLike($x, $y, $type = null) {
$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);
}
}
2 changes: 1 addition & 1 deletion lib/private/User/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected function getUserObject($uid, $backend, $cacheUser = true) {
*/
public function userExists($uid) {
$user = $this->get($uid);
return $user !== null && $user->getUID() === $uid;
return ($user !== null);
}

/**
Expand Down