don't allow negative age in directory listings
This commit is contained in:
parent
35debe46bc
commit
7ccf47f4c6
@ -233,7 +233,7 @@ class Directory extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
$age = '';
|
$age = '';
|
||||||
if(strlen($rr['birthday'])) {
|
if(strlen($rr['birthday'])) {
|
||||||
if(($years = age($rr['birthday'],'UTC','')) != 0)
|
if(($years = age($rr['birthday'],'UTC','')) > 0)
|
||||||
$age = $years;
|
$age = $years;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user