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>'; $o .= '<div id="birthday-title-end"></div>';
foreach($r as $rr) { foreach($r as $rr) {
if(! strlen($rr['name']))
continue;
$now = strtotime('now'); $now = strtotime('now');
$today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false); $today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false);