From ca1294d6d30c5121ba33356bc293cc7052739e4f Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Mon, 20 Jul 2020 17:27:15 +0300 Subject: [PATCH] class errors --- classes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/User.php b/classes/User.php index 78477db..664da21 100644 --- a/classes/User.php +++ b/classes/User.php @@ -72,7 +72,7 @@ class User { //https://jsfiddle.net/ngx0yvhc $di = new DressedItems($this->id); - $dressedItems = $di->getItemsInSlots(); + $dressedItems = $di->getItemsInSlots() ?? []; for ($i = 1; $i <= 12; $i++) { echo sprintf('
', $i);