diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-06-25 08:47:05 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-06-25 08:47:05 +0200 |
commit | 2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba (patch) | |
tree | a19eeb1196718bbb8ddf2ab0dedb83657077c946 | |
parent | d42a998e49ca42696022316a8a527c39fc2fdf57 (diff) | |
download | volse-hubzilla-2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba.tar.gz volse-hubzilla-2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba.tar.bz2 volse-hubzilla-2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba.zip |
check if empty
-rw-r--r-- | Zotlabs/Lib/Libzotdir.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |