aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-22 06:31:35 +0000
committerMario <mario@mariovavti.com>2022-09-22 06:31:35 +0000
commit937d6cb1efef3250f68f2b943e3964473495acae (patch)
tree578834c1f838b65535c8176fa31237d22afeb42c /Zotlabs/Lib/Libzot.php
parent118a5edebc745fe2760f781c8bb9e9006bf6215f (diff)
downloadvolse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.tar.gz
volse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.tar.bz2
volse-hubzilla-937d6cb1efef3250f68f2b943e3964473495acae.zip
php8: fix warnings
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 2486f7d67..84fccd18f 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -2735,6 +2735,8 @@ class Libzot {
$token = ((x($arr, 'token')) ? $arr['token'] : '');
$feed = ((x($arr, 'feed')) ? intval($arr['feed']) : 0);
+ $ztarget_hash = EMPTY_STR;
+
if ($ztarget) {
$t = q("select * from hubloc where hubloc_id_url = '%s' and hubloc_network = 'zot6' limit 1",
dbesc($ztarget)
@@ -2742,7 +2744,6 @@ class Libzot {
if ($t) {
$ztarget_hash = $t[0]['hubloc_hash'];
-
}
else {
@@ -2750,7 +2751,6 @@ class Libzot {
// permissions we would know about them and we only want to know who they are to
// enumerate their specific permissions
- $ztarget_hash = EMPTY_STR;
}
}