aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-13 18:58:12 +0000
committerMario <mario@mariovavti.com>2022-02-13 18:58:12 +0000
commita7ec1805e3f5836641503d1f8cb6ccc1d8c885fa (patch)
tree048628b0da961a7cfda32dce7ed3572875e22907 /Zotlabs/Module
parent4b06bc552f04fc78545a450343cc59e236791a66 (diff)
downloadvolse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.gz
volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.bz2
volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.zip
address deprecation warnings
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Directory.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index b39887c9e..da37c582f 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -254,21 +254,21 @@ class Directory extends Controller {
$connect_link = '';
$location = '';
- if(strlen($rr['locale']))
+ if(isset($rr['locale']))
$location .= $rr['locale'];
- if(strlen($rr['region'])) {
- if(strlen($rr['locale']))
+ if(isset($rr['region'])) {
+ if($location)
$location .= ', ';
$location .= $rr['region'];
}
- if(strlen($rr['country'])) {
- if(strlen($location))
+ if(isset($rr['country'])) {
+ if($location)
$location .= ', ';
$location .= $rr['country'];
}
$age = '';
- if(strlen($rr['birthday'])) {
+ if(isset($rr['birthday'])) {
if(($years = age($rr['birthday'],'UTC','')) > 0)
$age = $years;
}