forked from extern/egroupware
Fixed birthday reminders not working
This commit is contained in:
parent
edb1ade9db
commit
87f2de7d82
10
index.php
10
index.php
@ -129,10 +129,10 @@
|
|||||||
if ($phpgw_info["user"]["apps"]["addressbook"]
|
if ($phpgw_info["user"]["apps"]["addressbook"]
|
||||||
&& $phpgw_info["user"]["preferences"]["addressbook"]["mainscreen_showbirthdays"]) {
|
&& $phpgw_info["user"]["preferences"]["addressbook"]["mainscreen_showbirthdays"]) {
|
||||||
echo "<!-- Birthday info -->\n";
|
echo "<!-- Birthday info -->\n";
|
||||||
$phpgw->db->query("select DISTINCT ab_firstname,ab_lastname from addressbook where "
|
$phpgw->db->query("select ab_firstname,ab_lastname from addressbook where "
|
||||||
. "ab_bday like '" . $phpgw->common->show_date(time(),"n/d",__LINE__,__FILE__)
|
. "ab_bday like '" . $phpgw->common->show_date(time(),"n/d")
|
||||||
. "/%' and (ab_owner='" . $phpgw_info["user"]["userid"] . "' or ab_access='"
|
. "/%' and (ab_owner='" . $phpgw_info["user"]["account_id"] . "' or ab_access='"
|
||||||
. "ab_public')");
|
. "public')",__LINE__,__FILE__);
|
||||||
while ($phpgw->db->next_record()) {
|
while ($phpgw->db->next_record()) {
|
||||||
echo "<tr><td>" . lang("Today is x's birthday!", $phpgw->db->f("ab_firstname") . " "
|
echo "<tr><td>" . lang("Today is x's birthday!", $phpgw->db->f("ab_firstname") . " "
|
||||||
. $phpgw->db->f("ab_lastname")) . "</td></tr>\n";
|
. $phpgw->db->f("ab_lastname")) . "</td></tr>\n";
|
||||||
@ -143,7 +143,7 @@
|
|||||||
$phpgw->common->show_date(time(),"Y")),"n/d" );
|
$phpgw->common->show_date(time(),"Y")),"n/d" );
|
||||||
$phpgw->db->query("select ab_firstname,ab_lastname from addressbook where "
|
$phpgw->db->query("select ab_firstname,ab_lastname from addressbook where "
|
||||||
. "ab_bday like '$tommorow/%' and (ab_owner='"
|
. "ab_bday like '$tommorow/%' and (ab_owner='"
|
||||||
. $phpgw_info["user"]["userid"] . "' or ab_access='public')",__LINE__,__FILE__);
|
. $phpgw_info["user"]["account_id"] . "' or ab_access='public')",__LINE__,__FILE__);
|
||||||
while ($phpgw->db->next_record()) {
|
while ($phpgw->db->next_record()) {
|
||||||
echo "<tr><td>" . lang("Tommorow is x's birthday.", $phpgw->db->f("ab_firstname") . " "
|
echo "<tr><td>" . lang("Tommorow is x's birthday.", $phpgw->db->f("ab_firstname") . " "
|
||||||
. $phpgw->db->f("ab_lastname")) . "</td></tr>\n";
|
. $phpgw->db->f("ab_lastname")) . "</td></tr>\n";
|
||||||
|
@ -622,7 +622,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function hook($location = ""){
|
function hook($location = "") {
|
||||||
global $phpgw, $phpgw_info;
|
global $phpgw, $phpgw_info;
|
||||||
|
|
||||||
/* First include the apps own hook file */
|
/* First include the apps own hook file */
|
||||||
|
Loading…
Reference in New Issue
Block a user