Code

Corrected spelling of statements.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 10:12:03 +0000 (10:12 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 10:12:03 +0000 (10:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7155 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_dhcpSharedNetwork.inc

index 1a3c61e1e50edf0f77698e5e441b34053a46f0ca..9e1f7e43b56a5047e159f2e64e540fd2505d1269 100644 (file)
@@ -51,17 +51,17 @@ class dhcpSharedNetwork extends dhcpPlugin
     } else {
       $smarty->assign("authoritative", "");
     }
-    if (!isset($this->statements["deny-unknown-clients"])){
+    if (!isset($this->statements["deny unknown-clients"])){
       $smarty->assign("allow_unknown_state", "checked");
     } else {
       $smarty->assign("allow_unknown_state", "");
     }
-    if (!isset($this->statements["deny-bootp"])){
+    if (!isset($this->statements["deny bootp"])){
       $smarty->assign("allow_bootp_state", "checked");
     } else {
       $smarty->assign("allow_bootp_state", "");
     }
-    if (!isset($this->statements["deny-booting"])){
+    if (!isset($this->statements["deny booting"])){
       $smarty->assign("allow_booting_state", "checked");
     } else {
       $smarty->assign("allow_booting_state", "");
@@ -121,11 +121,11 @@ class dhcpSharedNetwork extends dhcpPlugin
 
       foreach(array("unknown-clients", "bootp", "booting") as $name){
         if (isset($_POST[$name])){
-          $this->statements["allow-$name"]= "";
-          unset($this->statements["deny-$name"]);
+          $this->statements["allow $name"]= "";
+          unset($this->statements["deny $name"]);
         } else {
-          $this->statements["deny-$name"]= "";
-          unset($this->statements["allow-$name"]);
+          $this->statements["deny $name"]= "";
+          unset($this->statements["allow $name"]);
         }
       }
     }