forked from Wavyzz/dolibarr
Fix: A constant can't have spaces in name
This commit is contained in:
@@ -375,6 +375,10 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
|
// Clean parameters
|
||||||
|
$name=trim($name);
|
||||||
|
|
||||||
|
// Check parameters
|
||||||
if (empty($name))
|
if (empty($name))
|
||||||
{
|
{
|
||||||
dol_print_error("Error: Call to function dolibarr_set_const with wrong parameters", LOG_ERR);
|
dol_print_error("Error: Call to function dolibarr_set_const with wrong parameters", LOG_ERR);
|
||||||
|
|||||||
Reference in New Issue
Block a user