From 5103495a461ed90f23b5ec890dca73935bff0c68 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Wed, 2 Aug 2023 14:08:08 +0200 Subject: Updated 19 files and added assets/icons/new/menu.svg (automated) --- pages/api/docs.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pages/api/docs.php') diff --git a/pages/api/docs.php b/pages/api/docs.php index a60a6e6..31cd961 100644 --- a/pages/api/docs.php +++ b/pages/api/docs.php @@ -20,10 +20,10 @@ if (isset($select)) { die("Not set"); } -if ($json_object["content"]) $data["contents"] = $json_object["content"]; -if ($json_object["name"]) $data["name"] = $json_object["name"]; -if ($json_object["explicit"]) $data["nsfw"] = $json_object["explicit"]; -if ($json_object["category"]) $data["category"] = trim($json_object["category"]) !== "" && trim($json_object["category"]) !== "Unsorted" && trim($json_object["category"]) !== "unsorted" && trim($json_object["category"]) !== "/no" && trim($json_object["category"]) !== "Unsort" && trim($json_object["category"]) !== "unsort" ? $json_object["category"] : null; +if (isset($json_object["content"])) $data["contents"] = $json_object["content"]; +if (isset($json_object["name"])) $data["name"] = $json_object["name"]; +if (isset($json_object["explicit"])) $data["nsfw"] = $json_object["explicit"]; +if (isset($json_object["category"])) $data["category"] = trim($json_object["category"]) !== "" && trim($json_object["category"]) !== "Unsorted" && trim($json_object["category"]) !== "unsorted" && trim($json_object["category"]) !== "/no" && trim($json_object["category"]) !== "Unsort" && trim($json_object["category"]) !== "unsort" ? $json_object["category"] : null; $data["last"]["date"] = time(); $data["last"]["author"] = $_PROFILE['login']; -- cgit