fix reading closet

This commit is contained in:
Pig Fang 2018-07-11 16:45:07 +08:00
parent 79746f9e81
commit 85baa91a4a

View File

@ -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' => '[]'