dever 6 anni fa
parent
commit
c1fa8fcab7
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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'];
             }