aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-06-25 08:47:05 +0200
committerMario Vavti <mario@mariovavti.com>2021-06-25 08:47:05 +0200
commit2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba (patch)
treea19eeb1196718bbb8ddf2ab0dedb83657077c946 /Zotlabs
parentd42a998e49ca42696022316a8a527c39fc2fdf57 (diff)
downloadvolse-hubzilla-2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba.tar.gz
volse-hubzilla-2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba.tar.bz2
volse-hubzilla-2f1c2f42b1e27e5ae7fc7f82f6118517d087fdba.zip
check if empty
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Libzotdir.php4
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;
}