keep default value be integer

This commit is contained in:
xiaomlove
2021-01-06 01:39:45 +08:00
parent 9bce2ac1a4
commit 28ab56fe70
5 changed files with 31 additions and 31 deletions

View File

@@ -148,7 +148,7 @@ echo "<tr><td>".$row["name"]."</td><td>".$row["url"]."</td><td>".$row["title"].
echo "</table>";
?>
<?php if ($_GET['action'] == "edit") {
$id = ($_GET["id"] ?? 0);
$id = intval($_GET["id"] ?? 0);
$result = sql_query ("SELECT * FROM links where id = ".sqlesc($id));
if ($row = mysql_fetch_array($result)) {
?>