Code Duplication    Length = 8-9 lines in 2 locations

Sources/ScheduledTasks.php 2 locations

@@ 585-592 (lines=8) @@
582
					'count' => 1,
583
				);
584
		}
585
		elseif ($row['note_type'] == 'topic')
586
		{
587
			if (!isset($types[$row['note_type']][$row['id_board']]['lines'][$row['id_topic']]))
588
				$types[$row['note_type']][$row['id_board']]['lines'][$row['id_topic']] = array(
589
					'id' => $row['id_topic'],
590
					'subject' => un_htmlspecialchars($row['subject']),
591
				);
592
		}
593
		else
594
		{
595
			if (!isset($types[$row['note_type']][$row['id_board']]['lines'][$row['id_topic']]))
@@ 593-601 (lines=9) @@
590
					'subject' => un_htmlspecialchars($row['subject']),
591
				);
592
		}
593
		else
594
		{
595
			if (!isset($types[$row['note_type']][$row['id_board']]['lines'][$row['id_topic']]))
596
				$types[$row['note_type']][$row['id_board']]['lines'][$row['id_topic']] = array(
597
					'id' => $row['id_topic'],
598
					'subject' => un_htmlspecialchars($row['subject']),
599
					'starter' => $row['id_member_started'],
600
				);
601
		}
602
603
		$types[$row['note_type']][$row['id_board']]['lines'][$row['id_topic']]['members'] = array();
604
		if (!empty($notify['topics'][$row['id_topic']]))