dever 6 년 전
부모
커밋
c1fa8fcab7
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      act/lib/Comment.php

+ 3 - 1
act/lib/Comment.php

@@ -61,7 +61,9 @@ class Comment
         $table = $this->table($type);
         $info = Dever::db($table)->one($where);
         if (!$info) {
-            if (isset($info['name']) && $info['name']) {
+            $table = Dever::config('base')->type_table[$type];
+            $data = Dever::db($table)->one($id);
+            if (isset($data['name']) && $data['name']) {
                 $where['data_name'] = $info['name'];
             }