mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-18 23:41:28 +01:00
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;
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user