diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php
index a95ae3bb5ec..3df3c316e90 100644
--- a/htdocs/societe.class.php
+++ b/htdocs/societe.class.php
@@ -195,7 +195,20 @@ class Societe {
$this->client = $obj->client;
$this->fournisseur = $obj->fournisseur;
- $this->nom_url = ''.$obj->nom.'';
+ if ($this->client == 1)
+ {
+
+ $this->nom_url = ''.$obj->nom.'';
+ }
+ elseif($this->client == 2)
+ {
+ $this->nom_url = ''.$obj->nom.'';
+ }
+ else
+ {
+ $this->nom_url = ''.$obj->nom.'';
+ }
+
$this->rubrique = $obj->rubrique;