rabin 2 tháng trước cách đây
mục cha
commit
ff740574bd
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      lib/Save.php

+ 3 - 2
lib/Save.php

@@ -214,8 +214,9 @@ class Save
         if ($this->group_id) {
             $data['group_id'] = $this->group_id;
         }
-        
-        $data['user_id'] = $this->user_id;
+        if ($this->user_id) {
+            $data['user_id'] = $this->user_id;
+        }
         $data['id'] = Dever::db('file', 'upload')->up($file, $data);
         return $data;
     }