Changeset 7990 for branches/2.5/prototype/modules/calendar/schedules.php
- Timestamp:
- 03/11/13 17:58:44 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/prototype/modules/calendar/schedules.php
r7982 r7990 113 113 function normalizeEvents( &$result, $timezones ){ 114 114 115 $myCalendarsT = Controller::service('PostgreSQL')->execResultSql('SELECT calendar_id FROM calendar_signature WHERE user_uidnumber = \''.Config::me('uidNumber').'\' AND is_owner = \'1\' AND type = \'0\''); 116 $myCalendars = array(); 117 foreach($myCalendarsT as $v) 118 $myCalendars[] = $v['calendar_id']; 119 120 115 121 $date = new DateTime('now', new DateTimeZone('UTC')); 116 122 $DayLigth = array(); … … 166 172 $result[$i]['editable'] = (strstr($attend['acl'],"w") || strstr($attend['acl'],"o") || $attend['isOrganizer'] == '1') ? 1 : 0; 167 173 168 if($attend['status'] == STATUS_UNANSWERED )174 if($attend['status'] == STATUS_UNANSWERED && in_array($result[$i]['calendar'] , $myCalendars) ) 169 175 $result[$i]['unanswered'] = 1; 170 176
Note: See TracChangeset
for help on using the changeset viewer.