Code

Added message if adding of new host fails
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Oct 2007 13:58:29 +0000 (13:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Oct 2007 13:58:29 +0000 (13:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7645 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_goto_task.inc

index cccb987ddfc4a033abfeb787e3a2e8b9b8a15778..d53a4c2b498cbd723dea39c22b1cbecf49b46105 100644 (file)
@@ -105,6 +105,8 @@ class goto_task extends plugin
         $target = get_post("target_text");
         if($this->is_valid_target($target) && !in_array($target,$this->Target)){
           $this->Target[] = $target;
+        }else{
+          print_red(_("You must specify a valid MAC address or host name."));
         }
       }
     }else{