diff --git a/addressbook/inc/hook_home.inc.php b/addressbook/inc/hook_home.inc.php index f034a3ec13..616672d23f 100644 --- a/addressbook/inc/hook_home.inc.php +++ b/addressbook/inc/hook_home.inc.php @@ -38,26 +38,28 @@ $phpgw->common->show_date(time(),"m"), $phpgw->common->show_date(time(),"d"), $phpgw->common->show_date(time(),"Y")),"n/d" ); + //echo $today."\n"; - $bdays = $c->read(0,15,'',$today,'access=public,tid=n','','',$phpgw_info["user"]["account_id"]); + $bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$phpgw_info["user"]["account_id"]); - for($i=0;$i" . lang("Today is x's birthday!", $bdays[$i]["n_given"] . " " - . $bdays[$i]["n_family"]) . "\n"; + $tmp = $val["n_given"] . " " . $val["n_family"]; + echo "" . lang("Today is x's birthday!", $tmp) . "\n"; } $tomorrow = $phpgw->common->show_date(mktime(0,0,0, $phpgw->common->show_date(time(),"m"), $phpgw->common->show_date(time(),"d")+1, $phpgw->common->show_date(time(),"Y")),"n/d" ); + //echo $tomorrow."\n"; - $bdays = $c->read(0,15,'',$tomorrow,'access=public,tid=n','','',$phpgw_info["user"]["account_id"]); + $bdays = $c->read(0,15,$qfields,$tomorrow,'tid=n','','',$phpgw_info["user"]["account_id"]); - for($i=0;$i" . lang("Tomorrow is x's birthday.", $bdays[$i]["n_given"] . " " - . $bdays[$i]["n_family"]) . "\n"; + $tmp = $val["n_given"] . " " . $val["n_family"]; + echo "" . lang("Tomorrow is x's birthday.", $tmp) . "\n"; } echo "\n\n"; }