|
@@ 1940-1943 (lines=4) @@
|
| 1937 |
|
if ($change_since !== false) |
| 1938 |
|
{ |
| 1939 |
|
// find all existing recurrences |
| 1940 |
|
foreach($this->db->select($this->user_table,'DISTINCT cal_recur_date',$where,__LINE__,__FILE__,false,'','calendar') as $row) |
| 1941 |
|
{ |
| 1942 |
|
$recurrences[] = $row['cal_recur_date']; |
| 1943 |
|
} |
| 1944 |
|
|
| 1945 |
|
// update existing entries |
| 1946 |
|
$existing_entries = $this->db->select($this->user_table,'*',$where,__LINE__,__FILE__,false,'ORDER BY cal_recur_date DESC','calendar'); |
|
@@ 2533-2537 (lines=5) @@
|
| 2530 |
|
$where[] = '(cal_recur_date = 0 OR (cal_recur_date >= ' . (int)$start . |
| 2531 |
|
' AND cal_recur_date <= ' . (int)$end . '))'; |
| 2532 |
|
} |
| 2533 |
|
foreach($this->db->select($this->user_table,'DISTINCT cal_recur_date',$where,__LINE__,__FILE__,false,'','calendar') as $row) |
| 2534 |
|
{ |
| 2535 |
|
// inititalize the array |
| 2536 |
|
$participant_status[$row['cal_recur_date']] = null; |
| 2537 |
|
} |
| 2538 |
|
if (is_null($uid)) return $participant_status; |
| 2539 |
|
$user_type = $user_id = null; |
| 2540 |
|
self::split_user($uid, $user_type, $user_id, true); |