diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index ab2924e6963..29a8e6ce57f 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -99,13 +99,13 @@ if ($mode == 'search') {
/*
*
*/
-$socid = $_GET["socid"];
+$_socid = $_GET["socid"];
/*
* Sécurité si un client essaye d'accéder à une autre fiche que la sienne
*/
if ($user->societe_id > 0)
{
- $socid = $user->societe_id;
+ $_socid = $user->societe_id;
}
/*********************************************************************************
*
@@ -113,12 +113,12 @@ if ($user->societe_id > 0)
*
*
*********************************************************************************/
-if ($_GET["socid"] > 0)
+if ($_socid > 0)
{
// On recupere les donnees societes par l'objet
$objsoc = new Societe($db);
- $objsoc->id=$_GET["socid"];
- $objsoc->fetch($_GET["socid"],$to);
+ $objsoc->id=$_socid;
+ $objsoc->fetch($_socid,$to);
$dac = strftime("%Y-%m-%d %H:%M", time());
if ($errmesg)
@@ -366,7 +366,7 @@ if ($_GET["socid"] > 0)
if ($conf->projet->enabled && $user->rights->projet->creer)
{
- print 'Projet';
+ print 'Projet';
}
if ($conf->fichinter->enabled)
@@ -456,7 +456,7 @@ if ($_GET["socid"] > 0)
*
*/
print '