@@ -404,7 +404,6 @@ class BxDolCmtsQuery extends BxDolDb
$isDelOccured = 0;
$sQuery = $this->prepare("SELECT `cmt_id`, `cmt_parent_id` FROM {$this->_sTable} WHERE `cmt_author_id` = ? AND `cmt_replies` = 0", $iAuthorId);
$a = $this->getAll ($sQuery);
- reset($a) ;
foreach ($a as $r) {
$sQuery = $this->prepare("DELETE FROM {$this->_sTable} WHERE `cmt_id` = ?", $r['cmt_id']);
$this->query ($sQuery);