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 47799858a8de747d4275f5460a6088f32432296c..bcad3a306e76fea5c0d51dbf1df4645f22a3281d 100644 (file)
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);
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);
/* 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")."]";
}
/* 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")."]";
}