fix for overlapping of events not overlapping

This commit is contained in:
skeeter 2001-01-27 01:40:03 +00:00
parent 91316c0538
commit f24fa93c1e

View File

@ -231,7 +231,7 @@
. "FROM calendar_entry, calendar_entry_user "
. "WHERE (calendar_entry_user.cal_id = calendar_entry.cal_id) AND "
. " (((".$starttime." <= calendar_entry.cal_datetime) AND (".$endtime." >= calendar_entry.cal_datetime) AND (".$endtime." <= calendar_entry.cal_edatetime)) "
. "OR ((".$starttime." >= calendar_entry.cal_datetime) AND (".$starttime." <= calendar_entry.cal_edatetime) AND (".$endtime." >= calendar_entry.cal_edatetime)) "
. "OR ((".$starttime." >= calendar_entry.cal_datetime) AND (".$starttime." < calendar_entry.cal_edatetime) AND (".$endtime." >= calendar_entry.cal_edatetime)) "
. "OR ((".$starttime." <= calendar_entry.cal_datetime) AND (".$endtime." >= calendar_entry.cal_edatetime)) "
. "OR ((".$starttime." >= calendar_entry.cal_datetime) AND (".$endtime." <= calendar_entry.cal_edatetime))) ";
@ -785,7 +785,8 @@
$pict = "rpt.gif";
}
}
$p->set_var('link_entry',$this->link_to_entry($lr_events->id, $pict, $this->is_private($lr_events,$owner).' - '.$lr_events->description));
// $p->set_var('link_entry',$this->link_to_entry($lr_events->id, $pict, $this->is_private($lr_events,$owner).' - '.$lr_events->description));
$p->set_var('link_entry',$this->link_to_entry($lr_events->id, $pict, $lr_events->description));
if (intval($phpgw->common->show_date($lr_events->datetime,"Hi"))) {
if ($phpgw_info["user"]["preferences"]["common"]["timeformat"] == "12") {
$format = "h:i a";