diff --git a/modules/comment/comment.model.php b/modules/comment/comment.model.php index 645ae15bd..eea91c856 100644 --- a/modules/comment/comment.model.php +++ b/modules/comment/comment.model.php @@ -728,7 +728,7 @@ class commentModel extends comment */ public static function _arrangeComment(&$comment_list, $list, $depth, $parent = NULL) { - if(!count($list)) + if(!is_array($list) || !count($list)) { return; }