diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-31 20:08:35 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-31 20:08:35 -0700 |
commit | 7ccf47f4c69e6deecf33f982ae3ea7497ac10ee6 (patch) | |
tree | 81857d68aac197d6e96562a2b4e5e4da81ec7e2e /Zotlabs/Module/Directory.php | |
parent | 35debe46bc0a10f3bad21303e127cb29526c94a2 (diff) | |
download | volse-hubzilla-7ccf47f4c69e6deecf33f982ae3ea7497ac10ee6.tar.gz volse-hubzilla-7ccf47f4c69e6deecf33f982ae3ea7497ac10ee6.tar.bz2 volse-hubzilla-7ccf47f4c69e6deecf33f982ae3ea7497ac10ee6.zip |
don't allow negative age in directory listings
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-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; } |