aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-31 20:08:35 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-07 09:31:22 +0200
commit8a11dc0c900e48d3625ad500290d862d5fa64667 (patch)
tree6198e675e674806e127f946726bc8b4cbdbfa071 /Zotlabs
parent324d427ac722d25067a3b296fd0705385c1a4e6a (diff)
downloadvolse-hubzilla-8a11dc0c900e48d3625ad500290d862d5fa64667.tar.gz
volse-hubzilla-8a11dc0c900e48d3625ad500290d862d5fa64667.tar.bz2
volse-hubzilla-8a11dc0c900e48d3625ad500290d862d5fa64667.zip
don't allow negative age in directory listings
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Directory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index edcf43cd6..92c1e0245 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -233,7 +233,7 @@ class Directory extends \Zotlabs\Web\Controller {
$age = '';
if(strlen($rr['birthday'])) {
- if(($years = age($rr['birthday'],'UTC','')) != 0)
+ if(($years = age($rr['birthday'],'UTC','')) > 0)
$age = $years;
}