1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

fix number of ? in IN clause

Bug was introduced in a3dcbf63da.
This commit is contained in:
Peter Cowburn
2022-08-11 11:26:27 +01:00
parent 63f9200695
commit 9ea4de3056

View File

@@ -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) {