keep some default value be integer 2

This commit is contained in:
xiaomlove
2021-01-06 02:19:03 +08:00
parent 28ab56fe70
commit 38dae7c068
25 changed files with 100 additions and 100 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ function searchform () {
<?php
}
$countrows = number_format(get_row_count("loginattempts")) + 1;
$page = $_GET["page"] ?? 0;
$page = intval($_GET["page"] ?? 0);
$order = $_GET['order'];
if ($order == 'id')
@@ -120,7 +120,7 @@ stdfoot();
stdfoot();
}elseif ($action == 'save') {
$id = sqlesc($_POST['id']);
$id = sqlesc(intval($_POST['id'] ?? 0));
$ip = sqlesc($_POST['ip']);
$attempts = sqlesc($_POST['attempts']);
$type = sqlesc($_POST['type']);