diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-31 20:08:35 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-06-07 09:31:22 +0200 |
commit | 8a11dc0c900e48d3625ad500290d862d5fa64667 (patch) | |
tree | 6198e675e674806e127f946726bc8b4cbdbfa071 /Zotlabs/Module | |
parent | 324d427ac722d25067a3b296fd0705385c1a4e6a (diff) | |
download | volse-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/Module')
-rw-r--r-- | Zotlabs/Module/Directory.php | 2 |
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; } |