fix warning

This commit is contained in:
xiaomlove
2020-12-29 21:49:37 +08:00
parent d190ca6f67
commit 398cf8607a
55 changed files with 223 additions and 214 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ elseif ($_GET["act"] == "edit"){
stdfoot();
}
elseif ($_GET["act"]=="edited"){
$id = 0+$_POST["id"];
$id = $_POST["id"] ?? 0;
$title = $_POST["title"];
$text = $_POST["text"];
$language = $_POST["language"];
@@ -71,8 +71,8 @@ elseif ($_GET["act"]=="edited"){
header("Refresh: 0; url=modrules.php");
}
elseif ($_GET["act"]=="del"){
$id = 0+$_GET["id"];
$sure = 0+$_GET["sure"];
$id = (int)$_GET["id"];
$sure = $_GET["sure"] ?? 0;
if (!$sure)
{
stderr("Delete Rule","You are about to delete a rule. Click <a class=altlink href=?act=del&id=$id&sure=1>here</a> if you are sure.",false);