Commit 8a11dc0c authored by Zot's avatar Zot Committed by Mario
Browse files

don't allow negative age in directory listings

parent 324d427a
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment