We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 559587a commit 1ff49d6Copy full SHA for 1ff49d6
1 file changed
libraries/classes/Table.php
@@ -1824,7 +1824,7 @@ protected function saveUiPrefsToDb(UiPreferencesFeature $uiPreferencesFeature)
1824
// Remove some old rows in table_uiprefs if it exceeds the configured
1825
// maximum rows
1826
$sqlQuery = 'SELECT COUNT(*) FROM ' . $table;
1827
- $rowsCount = (int) $this->dbi->fetchValue($sqlQuery);
+ $rowsCount = (int) $this->dbi->fetchValue($sqlQuery, 0, DatabaseInterface::CONNECT_CONTROL)
1828
$maxRows = (int) $GLOBALS['cfg']['Server']['MaxTableUiprefs'];
1829
if ($rowsCount > $maxRows) {
1830
$numRowsToDelete = $rowsCount - $maxRows;
0 commit comments