[web-php] master: fix number of ? in IN clause

From: Date: Thu, 11 Aug 2022 10:34:20 +0000
Subject: [web-php] master: fix number of ? in IN clause
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-30483@lists.php.net to get a copy of this message
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) {

« previous php.webmaster (#30483) next »