Code Duplication    Length = 3-4 lines in 2 locations

htdocs/modules/comments/class/comment.php 1 location

@@ 236-239 (lines=4) @@
233
                    if (false != $this->delete($comments[$i])) {
234
                        // store poster ID and deleted post number into array for later use
235
                        $poster_id = $comments[$i]->getVar('uid');
236
                        if ($poster_id != 0) {
237
                            $deleted_num[$poster_id] = !isset($deleted_num[$poster_id]) ? 1
238
                                : ($deleted_num[$poster_id] + 1);
239
                        }
240
                    }
241
                }
242

htdocs/modules/comments/class/helper.php 1 location

@@ 965-967 (lines=3) @@
962
                            $msgs[] = _MD_COMMENTS_COMDELETED . ' (ID: ' . $child_comments[$i]->getVar('id') . ')';
963
                            // store poster ID and deleted post number into array for later use
964
                            $poster_id = $child_comments[$i]->getVar('uid');
965
                            if ($poster_id > 0) {
966
                                $deleted_num[$poster_id] =
967
                                    !isset($deleted_num[$poster_id]) ? 1 : ($deleted_num[$poster_id] + 1);
968
                            }
969
                        }
970
                    }