Code Duplication    Length = 4-4 lines in 2 locations

mail/inc/class.mail_ui.inc.php 2 locations

@@ 4582-4585 (lines=4) @@
4579
						!($flag2check==$query['filter'] || stripos($query['filter'],$flag2check)!==false))
4580
					{
4581
						$filter2toggle['status'] = array('un'.$_flag);
4582
						if ($query['filter'] && $query['filter']!='any')
4583
						{
4584
							$filter2toggle['status'][] = $query['filter'];
4585
						}
4586
						$rByUid = true;
4587
						$reverse = 1;
4588
						$_sRt = $this->mail_bo->getSortedList(
@@ 4598-4601 (lines=4) @@
4595
						);
4596
						$messageListForToggle = $_sRt['match']->ids;
4597
						$filter['status'] = array($_flag);
4598
						if ($query['filter'] && $query['filter'] !='any')
4599
						{
4600
							$filter['status'][] = $query['filter'];
4601
						}
4602
						$rByUid=true;
4603
						$reverse = 1;
4604
						$_sR = $this->mail_bo->getSortedList(