Merge pull request #16795 from frederic34/patch-18
fix php7.4 php8 warning when upgrade reloads modules
This commit is contained in:
commit
f78b4b903d
@ -92,7 +92,7 @@ class modBlockedLog extends DolibarrModules
|
||||
|
||||
$this->always_enabled = (!empty($conf->blockedlog->enabled)
|
||||
&& !empty($conf->global->BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY)
|
||||
&& in_array($mysoc->country_code, explode(',', $conf->global->BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY))
|
||||
&& in_array((empty($mysoc->country_code) ? '' : $mysoc->country_code), explode(',', $conf->global->BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY))
|
||||
&& $this->alreadyUsed());
|
||||
|
||||
// Constants
|
||||
|
||||
Loading…
Reference in New Issue
Block a user