From 3d323fd2608d58164f2fb1889f508b2796190f23 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 17 Mar 2011 00:32:24 -0700 Subject: [PATCH] condense birthday display --- boot.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index d02ecd344a..330c965f4e 100644 --- a/boot.php +++ b/boot.php @@ -2423,7 +2423,13 @@ function get_birthdays() { ); if($r && count($r)) { - $o .= '
' . t('Birthdays this week:') . '
'; + $total = 0; + foreach($r as $rr) + if(strlen($rr['name'])) + $total ++; + + $o .= ''; + $o .= '' ; } - $o .= '
'; + $o .= ''; } return $o;