From ff9b46871528c053a4ebc07434aaa614d57503c8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 22 Nov 2005 16:50:51 +0000 Subject: [PATCH] Ajout log consult --- htdocs/telephonie/client/fiche.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/client/fiche.php b/htdocs/telephonie/client/fiche.php index f0c18c05ab8..51295facafa 100644 --- a/htdocs/telephonie/client/fiche.php +++ b/htdocs/telephonie/client/fiche.php @@ -37,7 +37,7 @@ if ($cancel == $langs->trans("Cancel")) if ($_GET["id"]) { - $soc = new Societe($db); + $soc = new TelephonieClient($db); $result = $soc->fetch($_GET["id"], $user); if (!$soc->perm_read) @@ -47,6 +47,9 @@ if ($_GET["id"]) if ( $result == 1 && $soc->perm_read) { + $soc->log_consult($user,'r'); + + if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit') { /* Commentaires */ @@ -54,7 +57,6 @@ if ($_GET["id"]) $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_commentaire as c"; $sql .= " WHERE fk_soc = ".$soc->id; $sql .= " ORDER BY c.datec DESC"; - $resql = $db->query($sql); if ($resql)