com web/bugs: Fix #77971: Can't access other than 1st page of advanced bug search: include/query.php
| From: | Peter Kokot | Date: | Sun, 05 May 2019 03:42:22 +0000 |
| Subject: | com web/bugs: Fix #77971: Can't access other than 1st page of advanced bug search: include/query.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28016@lists.php.net to get a copy of this message | ||
Commit: 35463d9fa397f963443f75c42f54e1a7bbfc5432
Author: Peter Kokot <peterkokot@gmail.com> 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]);
}