diff --git a/app/Models/Closet.php b/app/Models/Closet.php index ac9eeba4..cb7bfaf1 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)->isEmpty()) { + if ($this->db->where('uid', $uid)->count() == 0) { $this->db->insert([ 'uid' => $uid, 'textures' => '[]'