Code Duplication    Length = 9-9 lines in 2 locations

Sources/ManageBans.php 2 locations

@@ 983-991 (lines=9) @@
980
					'value' => $ban_items[$row['id_ban']]['ip'],
981
				);
982
			}
983
			elseif (!empty($row['hostname']))
984
			{
985
				$ban_items[$row['id_ban']]['type'] = 'hostname';
986
				$ban_items[$row['id_ban']]['hostname'] = str_replace('%', '*', $row['hostname']);
987
				$log_info[] = array(
988
					'bantype' => 'hostname',
989
					'value' => $row['hostname'],
990
				);
991
			}
992
			elseif (!empty($row['email_address']))
993
			{
994
				$ban_items[$row['id_ban']]['type'] = 'email';
@@ 992-1000 (lines=9) @@
989
					'value' => $row['hostname'],
990
				);
991
			}
992
			elseif (!empty($row['email_address']))
993
			{
994
				$ban_items[$row['id_ban']]['type'] = 'email';
995
				$ban_items[$row['id_ban']]['email'] = str_replace('%', '*', $row['email_address']);
996
				$log_info[] = array(
997
					'bantype' => 'email',
998
					'value' => $ban_items[$row['id_ban']]['email'],
999
				);
1000
			}
1001
			elseif (!empty($row['id_member']))
1002
			{
1003
				$ban_items[$row['id_ban']]['type'] = 'user';