This commit is contained in:
Laurent Destailleur
2023-10-04 12:59:00 +02:00
parent 8fc2beda1f
commit a201f54777

View File

@@ -66,9 +66,9 @@ function getOnlineSignatureUrl($mode, $type, $ref = '', $localorexternal = 1, $o
if (empty($obj)) {
//to be compatible with 15.0 -> 19.0
global $object;
if (empty($object)) {
$obj = new stdClass();
} else {
if (empty($object)) {
$obj = new stdClass();
} else {
dol_syslog(__METHOD__." using global object is deprecated, please give obj as argument", LOG_WARNING);
$obj = $object;
}