From b3050d3bc8fc812f0579982e1c866ab07499e0a8 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 16 Mar 2011 22:27:34 -0700 Subject: [PATCH] no birthdays for nonexistent contacts --- boot.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot.php b/boot.php index 08caa72ab9..d02ecd344a 100644 --- a/boot.php +++ b/boot.php @@ -2428,6 +2428,8 @@ function get_birthdays() { $o .= '
'; 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);