소스 검색

#1 - Minor fixes and improvements.

AntonLV 13 년 전
부모
커밋
b86cdf7895
1개의 변경된 파일과 11개의 추가작업 그리고 11개의 파일을 삭제
  1. 11 11
      inc/classes/BxDolCmtsQuery.php

+ 11 - 11
inc/classes/BxDolCmtsQuery.php

@@ -141,19 +141,19 @@ class BxDolCmtsQuery extends BxDolDb
         }
 
         $sQuery = $this->prepare("SELECT
-                `c`.`cmt_id`,
-                `c`.`cmt_parent_id`,
-                `c`.`cmt_vparent_id`,
-                `c`.`cmt_object_id`,
-                `c`.`cmt_author_id`,
-                `c`.`cmt_level`,
-                `c`.`cmt_text`,
-                `c`.`cmt_replies`,
-                `c`.`cmt_time`
+                `{$this->_sTable}`.`cmt_id`,
+                `{$this->_sTable}`.`cmt_parent_id`,
+                `{$this->_sTable}`.`cmt_vparent_id`,
+                `{$this->_sTable}`.`cmt_object_id`,
+                `{$this->_sTable}`.`cmt_author_id`,
+                `{$this->_sTable}`.`cmt_level`,
+                `{$this->_sTable}`.`cmt_text`,
+                `{$this->_sTable}`.`cmt_replies`,
+                `{$this->_sTable}`.`cmt_time`
                 $sFields
-            FROM {$this->_sTable} AS `c`
+            FROM `{$this->_sTable}`
             $sJoin
-            WHERE `c`.`cmt_object_id` = ? AND `c`.`cmt_id` = ?
+            WHERE `{$this->_sTable}`.`cmt_object_id` = ? AND `{$this->_sTable}`.`cmt_id` = ?
             LIMIT 1", $iId, $iCmtId);
         return $this->getRow($sQuery);
     }