diff --git a/htdocs/soc.php3 b/htdocs/soc.php3
index 2416d4a7cd7..fa91fe30e7e 100644
--- a/htdocs/soc.php3
+++ b/htdocs/soc.php3
@@ -107,42 +107,45 @@ elseif ($action == 'edit')
{
print_titre("Edition de la société");
- $soc = new Societe($db);
- $soc->id = $socid;
- $soc->fetch($socid);
+ if ($socid)
+ {
- print '
';
+ print '';
+ }
} else {
print_titre("Fiche société");
@@ -151,8 +154,8 @@ elseif ($action == 'edit')
$soc->id = $socid;
$soc->fetch($socid);
- print '';
- print '| Nom | '.$soc->nom.' |
';
+ print '';
+ print '| Nom | '.$soc->nom.' |
';
print '| Adresse | '.nl2br($soc->adresse).' |
';
print '| CP | '.$soc->cp.' '.$soc->ville.' |
';
@@ -164,7 +167,7 @@ elseif ($action == 'edit')
if ($soc->client)
{
- print '| Client | oui |
';
+ print '| Client | oui Fiche |
';
}
else
{
@@ -173,7 +176,7 @@ elseif ($action == 'edit')
if ($soc->fournisseur)
{
- print '| Fournisseur | oui |
';
+ print '| Fournisseur | oui Fiche |
';
}
else
{