mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Si note non dfini, on met null
This commit is contained in:
parent
8afb758862
commit
c0b8b9549d
|
|
@ -384,7 +384,9 @@ class DolibarrModules
|
|||
if ($row[0] == 0)
|
||||
{
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."boxes_def (name, file, note)";
|
||||
$sql.= " VALUES ('".$titre."','".$file."','".addslashes($note)."')";
|
||||
$sql.= " VALUES ('".$titre."','".$file."',";
|
||||
$sql.= $note?"'".addslashes($note)."'":"null";
|
||||
$sql.= ")";
|
||||
if (! $this->db->query($sql))
|
||||
{
|
||||
$err++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user