From e95d3e01c7df36260aa54359fa4388af91b589c5 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Apr 2008 07:50:19 +0000 Subject: [PATCH] Added check to avoid, undefined index message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10344 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dhcp/admin/systems/services/dhcp/class_dhcpService.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc index 01a6ea262..5856976d3 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc @@ -165,7 +165,9 @@ class dhcpService extends dhcpPlugin $ldap= $config->get_ldap_link(); $ldap->cat($this->dhcpPrimaryDN, array('cn')); $res= $ldap->fetch(); - $server_name= $res['cn'][0]; + if(isset($res['cn'][0])){ + $server_name= $res['cn'][0]; + } dhcpPlugin::save(); -- 2.30.2