Gestion du capital null
This commit is contained in:
parent
7c5a12504c
commit
1eaad2de87
@ -78,6 +78,11 @@ class Societe {
|
|||||||
$this->nom = "VALEUR MANQUANTE";
|
$this->nom = "VALEUR MANQUANTE";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strlen(trim($this->capital)) == 0)
|
||||||
|
{
|
||||||
|
$this->capital = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe ";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe ";
|
||||||
$sql .= " SET nom = '" . trim($this->nom) ."'";
|
$sql .= " SET nom = '" . trim($this->nom) ."'";
|
||||||
$sql .= ",address = '" . trim($this->adresse) ."'";
|
$sql .= ",address = '" . trim($this->adresse) ."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user