check data of closet valid before loop
This commit is contained in:
parent
139db5c08d
commit
56cefa1ca5
@ -63,7 +63,7 @@ class Closet
|
||||
|
||||
// load items from json string
|
||||
$this->textures = json_decode($this->db->where('uid', $uid)->get()[0]->textures, true);
|
||||
$this->textures = is_null($this->textures) ? [] : $this->textures;
|
||||
$this->textures = is_array($this->textures) ? $this->textures : [];
|
||||
|
||||
$textures_invalid = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user