|
@@ 1769-1774 (lines=6) @@
|
| 1766 |
|
} |
| 1767 |
|
$where = 'cal_id='.(int)$cal_id; |
| 1768 |
|
|
| 1769 |
|
if ($move_start) |
| 1770 |
|
{ |
| 1771 |
|
// move the recur-date of the participants |
| 1772 |
|
$this->db->query("UPDATE $this->user_table SET cal_recur_date=cal_recur_date+$move_start WHERE $where AND cal_recur_date ". |
| 1773 |
|
((int)$change_since ? '>= '.(int)$change_since : '!= 0'),__LINE__,__FILE__); |
| 1774 |
|
} |
| 1775 |
|
if ($move_start || $move_end) |
| 1776 |
|
{ |
| 1777 |
|
// move the event and it's recurrences |
|
@@ 1775-1780 (lines=6) @@
|
| 1772 |
|
$this->db->query("UPDATE $this->user_table SET cal_recur_date=cal_recur_date+$move_start WHERE $where AND cal_recur_date ". |
| 1773 |
|
((int)$change_since ? '>= '.(int)$change_since : '!= 0'),__LINE__,__FILE__); |
| 1774 |
|
} |
| 1775 |
|
if ($move_start || $move_end) |
| 1776 |
|
{ |
| 1777 |
|
// move the event and it's recurrences |
| 1778 |
|
$this->db->query("UPDATE $this->dates_table SET cal_start=cal_start+$move_start,cal_end=cal_end+$move_end WHERE $where". |
| 1779 |
|
((int) $change_since ? ' AND cal_start >= '.(int) $change_since : ''),__LINE__,__FILE__); |
| 1780 |
|
} |
| 1781 |
|
return $this->db->affected_rows(); |
| 1782 |
|
} |
| 1783 |
|
|