Code

Backport from trunk
[gosa.git] / gosa-plugins / mit-krb5 / admin / systems / services / kerberos / class_goKrbServer.inc
index 1947a40f442666cae5bc10da4c47554ee8c70fab..75e9cd46a7795fd5f0110b3de5527dc73d7c937d 100644 (file)
@@ -351,7 +351,7 @@ class goKrbServer extends goService{
         /* Send remove policy event  
          */
         foreach($actions['del'] as $policy){
-            if(!in_array($policy['NAME'],$policies)) continue;
+            if(!in_array_strict($policy['NAME'],$policies)) continue;
             if(!$o->krb5_del_policy($this->macAddress,$policy['NAME'])){
                 msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG);
             }
@@ -360,7 +360,7 @@ class goKrbServer extends goService{
         /* Send add new/edit policy event
          */
         foreach($actions['add_edit'] as $policy){
-            if(in_array($policy['NAME'],$policies)){
+            if(in_array_strict($policy['NAME'],$policies)){
                 if(!$o->krb5_set_policy($this->macAddress,$policy['NAME'],$policy['DATA'])){
                     msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG);
                 }