mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
forgot to rename these tables
This commit is contained in:
parent
36f5eaf0cd
commit
885c1e61c3
@ -18,18 +18,16 @@
|
|||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
|
||||||
if ($id > 0) {
|
if ($id > 0) {
|
||||||
$phpgw->db->query("SELECT cal_date FROM webcal_entry WHERE cal_id = $id");
|
$phpgw->db->query("SELECT cal_datetime FROM calendar_entry WHERE cal_id = $id",__LINE__,__FILE__);
|
||||||
// date format is 19991231
|
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
|
|
||||||
$thisyear = (int)($phpgw->db->f(0) / 10000);
|
$thisyear = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"Y"));
|
||||||
$thismonth = ($phpgw->db->f(0) / 100) % 100;
|
$thismonth = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"n"));
|
||||||
|
|
||||||
$phpgw->db->query("DELETE FROM webcal_entry WHERE cal_id = $id");
|
$phpgw->db->query("DELETE FROM calendar_entry WHERE cal_id = $id",__LINE__,__FILE__);
|
||||||
$phpgw->db->query("DELETE FROM webcal_entry_user WHERE cal_id = $id");
|
$phpgw->db->query("DELETE FROM calendar_entry_user WHERE cal_id = $id",__LINE__,__FILE__);
|
||||||
$phpgw->db->query("DELETE FROM webcal_entry_repeats WHERE cal_id = $id");
|
$phpgw->db->query("DELETE FROM calendar_entry_repeats WHERE cal_id = $id",__LINE__,__FILE__);
|
||||||
$phpgw->db->query("DELETE FROM webcal_entry_groups WHERE cal_id = $id");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link("index.php","year=$thisyear&month=$thismonth"));
|
Header("Location: " . $phpgw->link("index.php","year=$thisyear&month=$thismonth"));
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user