diff options
Diffstat (limited to 'includes/util')
-rw-r--r-- | includes/util/functions.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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")) { |