Skip to content

Commit 1ff49d6

Browse files
authored
Fix fetchValue call with connection parameter
1 parent 559587a commit 1ff49d6

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)