1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

PHPStan: Fix level 2 errors

This commit is contained in:
Jakub Vrana
2025-03-26 15:38:04 +01:00
parent d39cc24c61
commit 7e5757f8b4
16 changed files with 36 additions and 29 deletions

View File

@@ -270,7 +270,7 @@ if (!$columns && support("table")) {
$page = $_GET["page"];
if ($page == "last") {
$found_rows = get_val(count_rows($TABLE, $where, $is_group, $group));
$page = floor(max(0, $found_rows - 1) / $limit);
$page = floor(max(0, intval($found_rows) - 1) / $limit);
}
$select2 = $select;