From: cajus Date: Thu, 9 Aug 2007 09:19:04 +0000 (+0000) Subject: Fixed error printing. Via messages, not via print_red(). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=11a7f5edfccf18a657e1437997993f7e969a2f31;p=gosa.git Fixed error printing. Via messages, not via print_red(). git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7021 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_dhcpSubnet.inc b/plugins/admin/systems/class_dhcpSubnet.inc index afb12f038..c43fc7a2a 100644 --- a/plugins/admin/systems/class_dhcpSubnet.inc +++ b/plugins/admin/systems/class_dhcpSubnet.inc @@ -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); } }