check if empty

This commit is contained in:
Mario Vavti
2021-06-25 08:47:05 +02:00
parent d42a998e49
commit 2f1c2f42b1

View File

@@ -265,7 +265,7 @@ class Libzotdir {
if (is_array($j['transactions']) && count($j['transactions'])) { if (is_array($j['transactions']) && count($j['transactions'])) {
foreach ($j['transactions'] as $t) { foreach ($j['transactions'] as $t) {
if (!($t['hash'] || $t['transaction_id'] || $t['address'])) { if (empty($t['hash']) || empty($t['transaction_id']) || empty($t['address'])) {
continue; continue;
} }
@@ -647,7 +647,7 @@ class Libzotdir {
return; return;
} }
if (!($hash || $guid || $addr)) { if (empty($hash) || empty($guid) || empty($addr)) {
return; return;
} }