no birthdays for nonexistent contacts

This commit is contained in:
Friendika 2011-03-16 22:27:34 -07:00
parent 47f0abf27e
commit b3050d3bc8

View File

@ -2428,6 +2428,8 @@ function get_birthdays() {
$o .= '<div id="birthday-title-end"></div>';
foreach($r as $rr) {
if(! strlen($rr['name']))
continue;
$now = strtotime('now');
$today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false);