Skip to content

Commit 3d0e40a

Browse files
committed
Merge phpmyadmin#20223 - Fix phpmyadmin#17451 - fetchValue call with connection parameter
Pull-request: phpmyadmin#20223 Fixes: phpmyadmin#17451 Signed-off-by: Guido Selva <guido.selva@gmail.com> Signed-off-by: William Desportes <williamdes@wdes.fr>
2 parents 559587a + 1ff49d6 commit 3d0e40a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries/classes/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ protected function saveUiPrefsToDb(UiPreferencesFeature $uiPreferencesFeature)
18241824
// Remove some old rows in table_uiprefs if it exceeds the configured
18251825
// maximum rows
18261826
$sqlQuery = 'SELECT COUNT(*) FROM ' . $table;
1827-
$rowsCount = (int) $this->dbi->fetchValue($sqlQuery);
1827+
$rowsCount = (int) $this->dbi->fetchValue($sqlQuery, 0, DatabaseInterface::CONNECT_CONTROL);
18281828
$maxRows = (int) $GLOBALS['cfg']['Server']['MaxTableUiprefs'];
18291829
if ($rowsCount > $maxRows) {
18301830
$numRowsToDelete = $rowsCount - $maxRows;

0 commit comments

Comments
 (0)