Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 4563-4566 (lines=4) @@
4560
						!($flag2check==$query['filter'] || stripos($query['filter'],$flag2check)!==false))
4561
					{
4562
						$filter2toggle['status'] = array('un'.$_flag);
4563
						if ($query['filter'] && $query['filter']!='any')
4564
						{
4565
							$filter2toggle['status'][] = $query['filter'];
4566
						}
4567
						$_sRt = $this->mail_bo->getSortedList(
4568
							$folder,
4569
							$sort=0,
@@ 4577-4580 (lines=4) @@
4574
						);
4575
						$messageListForToggle = $_sRt['match']->ids;
4576
						$filter['status'] = array($_flag);
4577
						if ($query['filter'] && $query['filter'] !='any')
4578
						{
4579
							$filter['status'][] = $query['filter'];
4580
						}
4581
						$_sR = $this->mail_bo->getSortedList(
4582
							$folder,
4583
							$sort=0,