Code

Fixed logging
[gosa.git] / plugins / admin / systems / class_goGlpiServer.inc
index 152ed03d33d051f1d641fdbc9df79dea669461c9..ec35b1f24afc2d1d928ccc867a00a0bae0ae707b 100644 (file)
@@ -25,6 +25,7 @@ class goGlpiServer extends goService {
   var $goGlpiAdmin        ="";
   var $goGlpiDatabase     ="";
   var $goGlpiPassword     ="";
+  var $view_logged  =FALSE;
  
  
   function goGlpiServer($config,$dn)
@@ -36,6 +37,11 @@ class goGlpiServer extends goService {
 
   function execute()
   { 
+    if($this->is_account && !$this->view_logged){
+      $this->view_logged = TRUE;
+      @log::log("view","server/".get_class($this),$this->dn);
+    }
+
     $smarty = get_smarty(); 
     foreach($this->attributes as $attr){
       $smarty->assign($attr,$this->$attr);