fix php8 warning when upgrade reloads modules
This commit is contained in:
parent
8d19c57731
commit
1b4b48a634
@ -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