From 85310e93fd028373cead46d4f7ed4a1b0a8a3995 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Oct 2007 13:59:59 +0000 Subject: [PATCH] Only display IP warning if we want to search for a specific range git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7646 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/gotomasses/class_target_list.inc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/addons/gotomasses/class_target_list.inc b/plugins/addons/gotomasses/class_target_list.inc index 2863b24fa..6ecd300ef 100644 --- a/plugins/addons/gotomasses/class_target_list.inc +++ b/plugins/addons/gotomasses/class_target_list.inc @@ -224,13 +224,15 @@ class target_list extends MultiSelectWindow $IP_start = $this->IP_start; $IP_end = $this->IP_end; - if(!is_ip($IP_start)){ - print_red(_("Please specify a valid IP range.")); - return; - } - if(!is_ip($IP_end)){ - print_red(_("Please specify a valid IP range.")); - return; + if($this->IPMatch){ + if(!is_ip($IP_start)){ + print_red(_("Please specify a valid IP range.")); + return; + } + if(!is_ip($IP_end)){ + print_red(_("Please specify a valid IP range.")); + return; + } } -- 2.30.2