From 2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 25 Jun 2021 08:47:05 +0200 Subject: check if empty --- Zotlabs/Lib/Libzotdir.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Lib/Libzotdir.php') diff --git a/Zotlabs/Lib/Libzotdir.php b/Zotlabs/Lib/Libzotdir.php index adc9b79bb..4f35a1b80 100644 --- a/Zotlabs/Lib/Libzotdir.php +++ b/Zotlabs/Lib/Libzotdir.php @@ -265,7 +265,7 @@ class Libzotdir { if (is_array($j['transactions']) && count($j['transactions'])) { 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; } @@ -647,7 +647,7 @@ class Libzotdir { return; } - if (!($hash || $guid || $addr)) { + if (empty($hash) || empty($guid) || empty($addr)) { return; } -- cgit v1.2.3