Code

Fixed error printing. Via messages, not via print_red().
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 09:19:04 +0000 (09:19 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 09:19:04 +0000 (09:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7021 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_dhcpSubnet.inc

index afb12f0381d233e2599b5cbb4edc3d96b3007903..c43fc7a2a1f417b5ec44b9982dba853504f1721b 100644 (file)
@@ -146,7 +146,7 @@ class dhcpSubnet extends dhcpPlugin
     /* IP's? */
     foreach(array('dhcpNetMask' => _("Netmask"), 'cn' => _("Network address"), 'range_start' => _("Range"), 'range_stop' => _("Range")) as $attr => $str){
       if ($this->$attr != "" && !is_ip($this->$attr)){
-        print_red(sprintf(_("The field '%s' contains an invalid IP address"), $str));
+        $message[]= sprintf(_("The field '%s' contains an invalid IP address"), $str);
       }
     }