aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Externals.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-17 09:09:02 +0000
committerMario <mario@mariovavti.com>2022-11-17 09:09:02 +0000
commit805074a0f926dbe63e44241a1fb965188cb47908 (patch)
treef6ea798e124a9352f9cdaff1e93d928018a82f52 /Zotlabs/Daemon/Externals.php
parent5216c5b23213b1a97051fe7150086109c8a00df1 (diff)
downloadvolse-hubzilla-805074a0f926dbe63e44241a1fb965188cb47908.tar.gz
volse-hubzilla-805074a0f926dbe63e44241a1fb965188cb47908.tar.bz2
volse-hubzilla-805074a0f926dbe63e44241a1fb965188cb47908.zip
externals: fix warnings
Diffstat (limited to 'Zotlabs/Daemon/Externals.php')
-rw-r--r--Zotlabs/Daemon/Externals.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Externals.php b/Zotlabs/Daemon/Externals.php
index 5b7954c2f..91fa09044 100644
--- a/Zotlabs/Daemon/Externals.php
+++ b/Zotlabs/Daemon/Externals.php
@@ -19,6 +19,7 @@ class Externals {
$importer = get_sys_channel();
$total = 0;
$attempts = 0;
+ $url = '';
logger('externals: startup', LOGGER_DEBUG);
@@ -67,9 +68,8 @@ class Externals {
datetime_convert('UTC', 'UTC', 'now - 30 days')
);
- $contact = $r[0];
-
- if ($contact) {
+ if ($r) {
+ $contact = $r[0];
$url = $contact['hubloc_id_url'];
}
}