Fix: A constant can't have spaces in name
This commit is contained in:
parent
9e744da4eb
commit
d0efa945d8
1 changed files with 4 additions and 0 deletions
|
|
@ -375,6 +375,10 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not
|
|||
{
|
||||
global $conf;
|
||||
|
||||
// Clean parameters
|
||||
$name=trim($name);
|
||||
|
||||
// Check parameters
|
||||
if (empty($name))
|
||||
{
|
||||
dol_print_error("Error: Call to function dolibarr_set_const with wrong parameters", LOG_ERR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue