Code

Only display IP warning if we want to search for a specific range
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Oct 2007 13:59:59 +0000 (13:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Oct 2007 13:59:59 +0000 (13:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7646 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_target_list.inc

index 2863b24fa648ade054c75680a050c91c6cc22a8f..6ecd300ef6d3e1818f320b314d61bff207eaabe7 100644 (file)
@@ -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;
+      }
     }