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('