Gestion du capital null

This commit is contained in:
Rodolphe Quiedeville 2004-02-05 18:51:27 +00:00
parent 7c5a12504c
commit 1eaad2de87

View File

@ -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) ."'";