aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-04-29 20:13:52 +0200
committerMario Vavti <mario@mariovavti.com>2023-04-29 20:13:52 +0200
commit95d07974f49c8e0123a29c631fa475815cf40cbd (patch)
tree555f0abbeda6a5759a2ec412ae4bb68a89c94bb6 /Zotlabs/Lib
parent354e341d69eb748a6ae1582fadade9d1012de7e4 (diff)
downloadvolse-hubzilla-95d07974f49c8e0123a29c631fa475815cf40cbd.tar.gz
volse-hubzilla-95d07974f49c8e0123a29c631fa475815cf40cbd.tar.bz2
volse-hubzilla-95d07974f49c8e0123a29c631fa475815cf40cbd.zip
fix php warning
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Libzotdir.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzotdir.php b/Zotlabs/Lib/Libzotdir.php
index fd5778e5a..1f3c4d728 100644
--- a/Zotlabs/Lib/Libzotdir.php
+++ b/Zotlabs/Lib/Libzotdir.php
@@ -372,7 +372,7 @@ class Libzotdir {
// This is a workaround for a missing xchan_updated column
// TODO: implement xchan_updated in the xchan table and update this column instead
- if($zf['data']['primary_location']['address'] && $zf['data']['primary_location']['url']) {
+ if(!empty($zf['data']['primary_location']['url'])) {
q("UPDATE hubloc SET hubloc_updated = '%s' WHERE hubloc_id_url = '%s' AND hubloc_primary = 1",
dbesc(datetime_convert()),
dbesc($zf['data']['primary_location']['url'])