Fix unknown variable in product.class.php
This commit is contained in:
parent
57cbb21f6b
commit
ef8f8d990a
@ -572,7 +572,7 @@ class Product extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function check()
|
public function check()
|
||||||
{
|
{
|
||||||
if (!empty($conf->global->MAIN_SECURITY_ALLOW_UNSECURED_REF_LABELS)) {
|
if (getDolGlobalInt('MAIN_SECURITY_ALLOW_UNSECURED_REF_LABELS')) {
|
||||||
$this->ref = trim($this->ref);
|
$this->ref = trim($this->ref);
|
||||||
} else {
|
} else {
|
||||||
$this->ref = dol_sanitizeFileName(stripslashes($this->ref));
|
$this->ref = dol_sanitizeFileName(stripslashes($this->ref));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user