ddd
Showing
1 changed file
with
8 additions
and
3 deletions
| ... | @@ -51,9 +51,14 @@ class UserSearch implements ArrayAccess, Iterator, Countable { | ... | @@ -51,9 +51,14 @@ class UserSearch implements ArrayAccess, Iterator, Countable { |
| 51 | if($key == 'wp_capabilities'){ | 51 | if($key == 'wp_capabilities'){ |
| 52 | $pieces = explode("\"", $val); | 52 | $pieces = explode("\"", $val); |
| 53 | $pieces = explode("\\", $pieces[1]); | 53 | $pieces = explode("\\", $pieces[1]); |
| 54 | $key = $pieces[0]; | 54 | $newVal = $pieces[0]; |
| 55 | $having_clause .= (empty($having_clause) ? $having : "\n AND `json` LIKE "); | 55 | if($newVal !='member'){ |
| 56 | $having_clause .= " '%{$key}%' "; | 56 | $having_clause .= (empty($having_clause) ? $having : "\n AND `json` LIKE "); |
| 57 | $having_clause .= " '%{$newVal}%' "; | ||
| 58 | }else{ | ||
| 59 | $having_clause .= (empty($having_clause) ? $having : "\n AND `json` LIKE "); | ||
| 60 | $having_clause .= " '%\"{$key}\":\"{$val}%' "; | ||
| 61 | } | ||
| 57 | }else{ | 62 | }else{ |
| 58 | if (!in_array($key, $this->fields)) { | 63 | if (!in_array($key, $this->fields)) { |
| 59 | $this->fields[] = $key; | 64 | $this->fields[] = $key; | ... | ... |
-
Please register or sign in to post a comment