Author: Peter Cowburn (salathe)
Date: 2022-08-11T11:26:27+01:00
Commit:
https://github.com/php/web-php/commit/9ea4de30567a2d26ff5e67ce23e04a393ec7e818
Raw diff:
https://github.com/php/web-php/commit/9ea4de30567a2d26ff5e67ce23e04a393ec7e818.diff
fix number of ? in IN clause
Bug was introduced in a3dcbf63da.
Changed paths:
M include/manual-lookup.inc
Diff:
diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc
index 6dcde1321..e8f6d241c 100644
--- a/include/manual-lookup.inc
+++ b/include/manual-lookup.inc
@@ -183,7 +183,7 @@ function find_manual_page($lang, $keyword)
// if this change remains, adjust the gen-phpweb-sqlite
script accordingly
$SQL = "SELECT name, prio FROM fs WHERE lang = :lang
- AND keyword IN (?, ?, ?, ?) ORDER BY keyword = ? DESC,
prio LIMIT 1";
+ AND keyword IN (?, ?, ?, ?, ?) ORDER BY keyword = ? DESC,
prio LIMIT 1";
$stm = $dbh->prepare($SQL);
if ($stm) {
--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php