From: hickert Date: Fri, 11 Apr 2008 07:50:19 +0000 (+0000) Subject: Added check to avoid, undefined index message X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e95d3e01c7df36260aa54359fa4388af91b589c5;p=gosa.git Added check to avoid, undefined index message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10344 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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();