mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 10:27:27 +08:00
fix warning
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user