Commit 3a83ed6e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix 'hiderealname' check in user search query (bug #820665)

In sql, null != 1 is not true.

Change-Id: I7003c6bf69b2f7f1a46af50ef6ff55075c4a5c05
Signed-off-by: default avatarRichard Mansfield <>
parent a938eee4
......@@ -215,7 +215,7 @@ class PluginSearchInternal extends PluginSearch {
$termsql = "$matches->preferredname
OR (
($usralias.preferredname IS NULL OR $usralias.preferredname = '' OR NOT $hidenameallowed OR $usrprefalias.value != '1')
($usralias.preferredname IS NULL OR $usralias.preferredname = '' OR NOT $hidenameallowed OR $usrprefalias.value != '1' OR $usrprefalias.value IS NULL)
AND ($matches->firstname OR $matches->lastname)
OR ($searchusernamesallowed AND $matches->username)";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment