Skip to content
Merged
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
10 changes: 5 additions & 5 deletions www/searchutil.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from playedgames where userid = '$curuser')";
$expr = "games.id $not in (select gameid from playedgames where userid = '$curuser')";
break;

case 'willplay':
Expand All @@ -666,7 +666,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from wishlists where userid = '$curuser')";
$expr = "games.id $not in (select gameid from wishlists where userid = '$curuser')";
break;

case 'wontplay':
Expand All @@ -676,7 +676,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from unwishlists where userid = '$curuser')";
$expr = "games.id $not in (select gameid from unwishlists where userid = '$curuser')";
break;


Expand All @@ -687,7 +687,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from reviews where review is not null and userid = '$curuser')";
$expr = "games.id $not in (select gameid from reviews where review is not null and userid = '$curuser')";
break;

case 'rated':
Expand All @@ -697,7 +697,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from reviews where rating is not null and userid = '$curuser')";
$expr = "games.id $not in (select gameid from reviews where rating is not null and userid = '$curuser')";
break;

case 'author':
Expand Down