Code

Fixed logging
[gosa.git] / plugins / admin / systems / class_goNtpServer.inc
index d64c45d2c69a5d89446ea3e6022bc86630248d76..26434eefba5236985f1b2d056803b40b35c0bb37 100644 (file)
@@ -22,6 +22,7 @@ class goNtpServer extends goService{
   var $goNtpServerStatus= "";
   var $acl;
   var $cn               = "";
+  var $view_logged  =FALSE;
 
   function goNtpServer($config,$dn)
   {
@@ -43,6 +44,11 @@ class goNtpServer extends goService{
   { 
     $smarty = get_smarty(); 
 
+    if($this->is_account && !$this->view_logged){
+      $this->view_logged = TRUE;
+      @log::log("view","server/".get_class($this),$this->dn);
+    }
+
     /* Here we add a new entry  */
     if(isset($_POST['NewNTPAdd']) && $_POST['NewNTPExport'] != "" && $this->acl_is_writeable("goTimeSource")) {
       $this->goTimeSource[$_POST['NewNTPExport']]= $_POST['NewNTPExport'];