diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 16001f2d993..06abbf0a5a1 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -5535,7 +5535,7 @@ abstract class CommonObject // Set the public "share" key $setsharekey = false; if ($this->element == 'propal' || $this->element == 'proposal') { - if (!emptygetDolGlobalInt("PROPOSAL_ALLOW_ONLINESIGN")) { + if (!empty(getDolGlobalInt("PROPOSAL_ALLOW_ONLINESIGN"))) { $setsharekey = true; // feature to make online signature is not set or set to on (default) } if (!empty(getDolGlobalInt("PROPOSAL_ALLOW_EXTERNAL_DOWNLOAD"))) {