From 5adf2b8517c21845dd0b406dee910514ff78640d Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 25 Jun 2023 20:10:39 +0200 Subject: Updated 6 files and added 2 files (automated) --- includes/util/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/util') diff --git a/includes/util/functions.inc b/includes/util/functions.inc index ad54706..9b6f356 100644 --- a/includes/util/functions.inc +++ b/includes/util/functions.inc @@ -91,7 +91,7 @@ if (!function_exists("getAsset")) { } if ($type === "bodies" || $type === "heads") { - if (in_array("human", getSystemMember($systemID, $memberID)["_metadata"]["species"])) { + if (getSystemMember($systemID, $memberID) !== null && getSystemMember($systemID, $memberID)["_metadata"] !== null && getSystemMember($systemID, $memberID)["_metadata"]["species"] !== null && in_array("human", getSystemMember($systemID, $memberID)["_metadata"]["species"])) { $type = "avatars"; if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/" . $type . "/" . $id . ".webp")) { -- cgit