1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00

PHPStan: Fix types

This commit is contained in:
Jakub Vrana
2025-03-30 21:08:06 +02:00
parent c05b1ac048
commit 016c1b2357
7 changed files with 34 additions and 35 deletions

View File

@@ -310,7 +310,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row
function selectLimitPrint($limit) {
echo "<fieldset><legend>" . lang('Limit') . "</legend><div>"; // <div> for easy styling
echo html_select("limit", array("", "50", "100"), $limit);
echo html_select("limit", array("", 50, 100), $limit);
echo "</div></fieldset>\n";
}
@@ -414,7 +414,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row
}
function selectLimitProcess() {
return (isset($_GET["limit"]) ? $_GET["limit"] : "50");
return (isset($_GET["limit"]) ? intval($_GET["limit"]) : 50);
}
function selectLengthProcess() {