no birthdays for nonexistent contacts
This commit is contained in:
parent
47f0abf27e
commit
b3050d3bc8
2
boot.php
2
boot.php
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue