X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fdhcp%2Fadmin%2Fsystems%2Fservices%2Fdhcp%2Fclass_dhcpAdvanced.inc;h=bcad3a306e76fea5c0d51dbf1df4645f22a3281d;hb=4c138afa1befaca9f4753f2864dd029dd7bb467a;hp=47799858a8de747d4275f5460a6088f32432296c;hpb=c16d7588512de02e85618a51e3f45fb0a8f72dbf;p=gosa.git diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc index 47799858a..bcad3a306 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc @@ -61,7 +61,7 @@ class dhcpAdvanced extends plugin if ($acl_writeable && isset($_POST['delete_statement']) && isset($_POST['dhcpstatements'])){ $name = preg_replace('/_[0-9]*$/', '', get_post('dhcpstatements')); $key = preg_replace('/^.*_/', '', get_post('dhcpstatements')); - if (in_array($name, $this->autoStatements)){ + if (in_array_strict($name, $this->autoStatements)){ msg_dialog::display(_("Error"), _("Cannot delete automatic statements!"), ERROR_DIALOG); } else { $this->statements->remove($name,$key); @@ -75,7 +75,7 @@ class dhcpAdvanced extends plugin if ($acl_writeable && isset($_POST['delete_option']) && isset($_POST['dhcpoptions'])){ $name = preg_replace('/_[0-9]*$/', '', get_post('dhcpoptions')); $key = preg_replace('/^.*_/', '', get_post('dhcpoptions')); - if (in_array($name, $this->autoOptions)){ + if (in_array_strict($name, $this->autoOptions)){ msg_dialog::display(_("Error"), _("Cannot delete automatic statements!"), ERROR_DIALOG); } else { $this->options->remove($name,$key); @@ -90,7 +90,7 @@ class dhcpAdvanced extends plugin /* Assign statements */ $statements= array(); foreach ($this->statements->getAll() as $key => $val){ - if (in_array($key, $this->autoStatements)){ + if (in_array_strict($key, $this->autoStatements)){ foreach($val as $id => $entry){ $statements[$key."_".$id]= "$key $entry ["._("automatic")."]"; } @@ -105,7 +105,7 @@ class dhcpAdvanced extends plugin /* Assign options */ $options= array(); foreach ($this->options->getAll() as $key => $val){ - if (in_array($key, $this->autoOptions)){ + if (in_array_strict($key, $this->autoOptions)){ foreach($val as $id => $entry){ $options[$key."_".$id]= "$key $entry ["._("automatic")."]"; }