mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 02:28:23 +01:00
Fix: Si note non dfini, on met null
This commit is contained in:
@@ -384,7 +384,9 @@ class DolibarrModules
|
|||||||
if ($row[0] == 0)
|
if ($row[0] == 0)
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."boxes_def (name, file, note)";
|
$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))
|
if (! $this->db->query($sql))
|
||||||
{
|
{
|
||||||
$err++;
|
$err++;
|
||||||
|
|||||||
Reference in New Issue
Block a user