Code

Updated
[gosa.git] / plugins / admin / fai / class_faiVariableEntry.inc
index a73a13ab1342846a9cb6d1bbc59c4a771392b99c..f367315026db30f7af6f4bf136aacb228cd9a0ed 100644 (file)
@@ -37,6 +37,9 @@ class faiVariableEntry extends plugin
 
   function execute()
   {
+       /* Call parent execute */
+       plugin::execute();
+
     /* Fill templating stuff */
     $smarty     = get_smarty();
     $display = "";
@@ -46,9 +49,9 @@ class faiVariableEntry extends plugin
      */
     foreach($this->attributes as $attrs){
       if(get_magic_quotes_gpc()){
-        $smarty->assign($attrs,htmlentities (stripslashes($this->$attrs)));
+        $smarty->assign($attrs,htmlentities (stripslashes(utf8_decode($this->$attrs))));
       }else{
-        $smarty->assign($attrs,htmlentities (($this->$attrs)));
+        $smarty->assign($attrs,htmlentities (utf8_decode($this->$attrs)));
       }
     }