From 1eaad2de87cc9b3ca5f7d31f37c15957c983ac25 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 5 Feb 2004 18:51:27 +0000 Subject: [PATCH] Gestion du capital null --- htdocs/societe.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 07fd5741c4d..8f01dad7821 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -78,6 +78,11 @@ class Societe { $this->nom = "VALEUR MANQUANTE"; } + if (strlen(trim($this->capital)) == 0) + { + $this->capital = 0; + } + $sql = "UPDATE ".MAIN_DB_PREFIX."societe "; $sql .= " SET nom = '" . trim($this->nom) ."'"; $sql .= ",address = '" . trim($this->adresse) ."'";