Skip to content

Commit

Permalink
Update Dao_Base_Comment.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweepr committed Jan 23, 2021
1 parent de85e42 commit cc1ec46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dao/Base/Dao_Base_Comment.php
Expand Up @@ -301,7 +301,7 @@ public function removeComments($commentMsgIdList)

$msgIdList = $this->_conn->arrayKeyToInForComments($commentMsgIdList);

if (isset($msgIdList) && $msgIdList !== '') {
if (isset($msgIdList) && !empty($msgIdList)) {
$this->_conn->modify('DELETE FROM commentsfull WHERE messageid IN ('.$msgIdList.')');
$this->_conn->modify('DELETE FROM commentsxover WHERE messageid IN ('.$msgIdList.')');
}
Expand Down

0 comments on commit cc1ec46

Please sign in to comment.