From 48afc99d05c7bcd54231f340635f5102a03fbda4 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 2 Jun 2023 16:31:02 +0200 Subject: Updated 7 files, added error.php and deleted 39 files (automated) --- pages/api.inc | 2 +- pages/contacts.inc | 4 ++-- pages/schedules.inc | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'pages') diff --git a/pages/api.inc b/pages/api.inc index 418df76..8bcea02 100644 --- a/pages/api.inc +++ b/pages/api.inc @@ -7,7 +7,7 @@ if (str_ends_with($_GET['_'], "/")) { } $toplevel = explode("/", $pagename)[1]; -$middlelevel = explode("/", $pagename)[2]; +$middlelevel = explode("/", $pagename)[2] ?? null; if (isset($middlelevel) && file_exists($_SERVER['DOCUMENT_ROOT'] . "/pages/api/" . $toplevel . "/" . $middlelevel . ".php") && is_file($_SERVER['DOCUMENT_ROOT'] . "/pages/api/" . $toplevel . "/" . $middlelevel . ".php")) { require_once $_SERVER['DOCUMENT_ROOT'] . "/pages/api/" . $toplevel . "/" . $middlelevel . ".php"; diff --git a/pages/contacts.inc b/pages/contacts.inc index 9239274..b93460a 100644 --- a/pages/contacts.inc +++ b/pages/contacts.inc @@ -93,7 +93,7 @@ uasort($contacts, function ($a, $b) { -
text($contact["description"]) ?>
+
text($contact["description"] ?? "") ?>
@@ -112,7 +112,7 @@ uasort($contacts, function ($a, $b) { ...
diff --git a/pages/schedules.inc b/pages/schedules.inc index fae5984..9b1c5eb 100644 --- a/pages/schedules.inc +++ b/pages/schedules.inc @@ -40,7 +40,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/composer/ical/ical.php";

--:--

- 🎉  No work today!'); } - ?> + ?>-->