diff --git a/htdocs/blockedlog/admin/blockedlog.php b/htdocs/blockedlog/admin/blockedlog.php
index 62a4882d4da..4b79d816843 100644
--- a/htdocs/blockedlog/admin/blockedlog.php
+++ b/htdocs/blockedlog/admin/blockedlog.php
@@ -342,6 +342,7 @@ if (GETPOST('forcegetkeyobfuscation')) {
print '
'.$e->getMessage().'
';
}
+ $obfuscationkey = '';
try {
$obfuscationkey = $block_static->getObfuscationKey(); // Note: use the $mysoc->idprof1 and $registrationnumber. On network trouble, an Exception is thrown to the caller
print "\n\n";
diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php
index c33391093a1..5424e2c3d44 100644
--- a/htdocs/blockedlog/class/blockedlog.class.php
+++ b/htdocs/blockedlog/class/blockedlog.class.php
@@ -1604,6 +1604,7 @@ class BlockedLog
// Get the obfuscation key from ping.dolibarr.org (used just after to decode HMAC secret key)
$errormsg = '';
+ $obfuscationkey = '';
try {
$obfuscationkey = $this->getObfuscationKey(); // Get obfuscation key providing $mysoc->idprof1 and $registrationnumber. Note: On network trouble, an Exception is thrown to the caller
} catch (Exception $e) {