don't show birthday for deleted contact

This commit is contained in:
Friendika 2011-05-10 20:53:04 -07:00
parent 5eea0d5ecb
commit d0a86d933f

View file

@ -2432,6 +2432,7 @@ function get_birthdays() {
if(strlen($rr['name'])) if(strlen($rr['name']))
$total ++; $total ++;
if($total) {
$o .= '<div id="birthday-notice" class="birthday-notice fakelink" onclick=openClose(\'birthday-wrapper\'); >' . t('Birthday Reminders') . ' ' . '(' . $total . ')' . '</div>'; $o .= '<div id="birthday-notice" class="birthday-notice fakelink" onclick=openClose(\'birthday-wrapper\'); >' . t('Birthday Reminders') . ' ' . '(' . $total . ')' . '</div>';
$o .= '<div id="birthday-wrapper" style="display: none;" ><div id="birthday-title">' . t('Birthdays this week:') . '</div>'; $o .= '<div id="birthday-wrapper" style="display: none;" ><div id="birthday-title">' . t('Birthdays this week:') . '</div>';
$o .= '<div id="birthday-adjust">' . t("\x28Adjusted for local time\x29") . '</div>'; $o .= '<div id="birthday-adjust">' . t("\x28Adjusted for local time\x29") . '</div>';
@ -2448,12 +2449,10 @@ function get_birthdays() {
. day_translate(datetime_convert('UTC', $a->timezone, $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : '') . day_translate(datetime_convert('UTC', $a->timezone, $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : '')
. '</div>' ; . '</div>' ;
} }
$o .= '</div></div>'; $o .= '</div></div>';
} }
}
return $o; return $o;
}} }}