diff --git a/app/Models/Closet.php b/app/Models/Closet.php index fed41d83..ac9eeba4 100644 --- a/app/Models/Closet.php +++ b/app/Models/Closet.php @@ -41,7 +41,7 @@ class Closet $this->db = DB::table('closets'); // Create a new closet if not exists - if (! $this->db->where('uid', $uid)->get()) { + if ($this->db->where('uid', $uid)->isEmpty()) { $this->db->insert([ 'uid' => $uid, 'textures' => '[]'