From 11a7f5edfccf18a657e1437997993f7e969a2f31 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 9 Aug 2007 09:19:04 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_dhcpSubnet.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.30.2