Fix non traversable case
This commit is contained in:
parent
08dbe74643
commit
36c6a41b1b
@ -55,8 +55,10 @@ $blocks = $block_static->getLog('just_certified', 0, 0, 'rowid', 'ASC');
|
|||||||
|
|
||||||
$auth->signature = $block_static->getSignature();
|
$auth->signature = $block_static->getSignature();
|
||||||
|
|
||||||
foreach ($blocks as &$b) {
|
if (is_array($bocks)) {
|
||||||
$auth->blockchain .= $b->signature;
|
foreach ($blocks as &$b) {
|
||||||
|
$auth->blockchain .= $b->signature;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash = $auth->getBlockchainHash();
|
$hash = $auth->getBlockchainHash();
|
||||||
|
|||||||
@ -71,8 +71,10 @@ class BlockedLogAuthority
|
|||||||
|
|
||||||
$this->blockchain = '';
|
$this->blockchain = '';
|
||||||
|
|
||||||
foreach ($blocks as &$b) {
|
if (is_array($bocks)) {
|
||||||
$this->blockchain .= $b->signature;
|
foreach ($blocks as &$b) {
|
||||||
|
$this->blockchain .= $b->signature;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->blockchain;
|
return $this->blockchain;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user