diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc
index 7b55449d99a83782c77be1c85c6586d0da3c75bc..aa78ad9e076c015c953a7a85c7b0077ba36b725e 100644 (file)
var $goFonMSN = "";
var $selected_categorie = 0;
var $netConfigDNS;
+ var $view_logged = FALSE;
/* attribute list for save action */
var $attributes= array("cn", "description",
/* Save dn for later references */
$this->orig_dn= $this->dn;
-
- if($this->is_account){
- @log::log("view","phone/".get_class($this),$this->dn);
- }
}
function set_acl_base($base)
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","phone/".get_class($this),$this->dn);
+ }
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){