]> git.mxchange.org Git - friendica.git/commitdiff
no birthdays for nonexistent contacts
authorFriendika <info@friendika.com>
Thu, 17 Mar 2011 05:27:34 +0000 (22:27 -0700)
committerFriendika <info@friendika.com>
Thu, 17 Mar 2011 05:27:34 +0000 (22:27 -0700)
boot.php

index 08caa72ab9ddb703da83d4d8d08eab5ac26d082e..d02ecd344a41aa3a0973ec97fdbd8344e823757c 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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);