Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fb1e0de2
authored
2021-02-17 19:24:47 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ddd
1 parent
a38c3ea6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
lib/UserSearch.php
lib/UserSearch.php
View file @
fb1e0de
...
...
@@ -51,9 +51,14 @@ class UserSearch implements ArrayAccess, Iterator, Countable {
if
(
$key
==
'wp_capabilities'
){
$pieces
=
explode
(
"
\"
"
,
$val
);
$pieces
=
explode
(
"
\\
"
,
$pieces
[
1
]);
$key
=
$pieces
[
0
];
$newVal
=
$pieces
[
0
];
if
(
$newVal
!=
'member'
){
$having_clause
.=
(
empty
(
$having_clause
)
?
$having
:
"
\n
AND `json` LIKE "
);
$having_clause
.=
" '%
{
$key
}
%' "
;
$having_clause
.=
" '%
{
$newVal
}
%' "
;
}
else
{
$having_clause
.=
(
empty
(
$having_clause
)
?
$having
:
"
\n
AND `json` LIKE "
);
$having_clause
.=
" '%
\"
{
$key
}
\"
:
\"
{
$val
}
%' "
;
}
}
else
{
if
(
!
in_array
(
$key
,
$this
->
fields
))
{
$this
->
fields
[]
=
$key
;
...
...
Please
register
or
sign in
to post a comment