Commit: 35463d9fa397f963443f75c42f54e1a7bbfc5432 Author: Peter Kokot <[email protected]> Sun, 5 May 2019 05:42:22 +0200 Parents: 2abc2bd092bc4abf9b1e3c51d01847b05d150d40 Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=35463d9fa397f963443f75c42f54e1a7bbfc5432 Log: Fix #77971: Can't access other than 1st page of advanced bug search Bugs: https://bugs.php.net/77971 Changed paths: M include/query.php Diff: diff --git a/include/query.php b/include/query.php index efe903b..46be206 100644 --- a/include/query.php +++ b/include/query.php @@ -88,8 +88,8 @@ if (isset($_GET['cmd']) && $_GET['cmd'] == 'display') if (!empty($package_name)) { $where_clause .= ' AND bugdb.package_name'; if (count($package_name) > 1) { - $package_name = array_map([$dbh, 'quote'], $package_name); - $where_clause .= " IN (" . join(", ", $package_name) . ")"; + $items = array_map([$dbh, 'quote'], $package_name); + $where_clause .= " IN (" . join(", ", $items) . ")"; } else { $where_clause .= ' = ' . $dbh->quote($package_name[0]); } @@ -98,8 +98,8 @@ if (isset($_GET['cmd']) && $_GET['cmd'] == 'display') if (!empty($package_nname)) { $where_clause .= ' AND bugdb.package_name'; if (count($package_nname) > 1) { - $package_nname = array_map([$dbh, 'quote'], $package_nname); - $where_clause .= " NOT IN (" . join(", ", $package_nname) . ")"; + $items = array_map([$dbh, 'quote'], $package_nname); + $where_clause .= " NOT IN (" . join(", ", $items) . ")"; } else { $where_clause .= ' <> ' . $dbh->quote($package_nname[0]); } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
