bunch of bug fixes
This commit is contained in:
parent
04c0c8a542
commit
39ff1ea964
6 changed files with 61 additions and 23 deletions
|
|
@ -972,9 +972,8 @@ sub www_search {
|
|||
Post.status in ('approved','archived')";
|
||||
$sql .= " or Post.status='pending'" if ($self->canModerate);
|
||||
$sql .= " or (asset.ownerUserId=".quote($session{user}{userId})." and asset.ownerUserId<>'1')
|
||||
)
|
||||
and ";
|
||||
$sql .= "($all) " if ($all ne "");
|
||||
) ";
|
||||
$sql .= " and ($all) " if ($all ne "");
|
||||
$sql .= " and " if ($sql ne "" && $exactPhrase ne "");
|
||||
$sql .= " ($exactPhrase) " if ($exactPhrase ne "");
|
||||
$sql .= " and " if ($sql ne "" && $atLeastOne ne "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue