@@ -315,7 +315,7 @@ |
||
| 315 | 315 | throw new MAPIException(null, MAPI_E_NO_ACCESS); |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function ($item) { |
|
| 318 | + $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function($item) { |
|
| 319 | 319 | return $item['props']['access'] === 0; |
| 320 | 320 | }); |
| 321 | 321 | if (count($noPermissionFolders) >= $folders) { |
@@ -521,8 +521,7 @@ discard block |
||
| 521 | 521 | // all-day events) or was imported from a system which doesn't set it. |
| 522 | 522 | $isTzdefstartSet = isset($calendaritem['props']['tzdefstart']); |
| 523 | 523 | $tzdefstart = $isTzdefstartSet ? |
| 524 | - hex2bin($calendaritem['props']['tzdefstart']) : |
|
| 525 | - mapi_ianatz_to_tzdef("Etc/UTC"); |
|
| 524 | + hex2bin($calendaritem['props']['tzdefstart']) : mapi_ianatz_to_tzdef("Etc/UTC"); |
|
| 526 | 525 | |
| 527 | 526 | // queryrows only returns 510 chars max, so if tzdef is longer than that |
| 528 | 527 | // it was probably silently truncated. In such case we need to open |
@@ -555,8 +554,7 @@ discard block |
||
| 555 | 554 | // on the day before or after. This should be fine for all the |
| 556 | 555 | // timezones which do not exceed 12 hour difference to UTC. |
| 557 | 556 | $localStart = $interval > 0 ? |
| 558 | - $calendaritem['props']['startdate'] - ($interval < 43200 ? $interval : $interval - 86400): |
|
| 559 | - $calendaritem['props']['startdate'] + ($interval > -43200 ? $interval : $interval - 86400) ; |
|
| 557 | + $calendaritem['props']['startdate'] - ($interval < 43200 ? $interval : $interval - 86400) : $calendaritem['props']['startdate'] + ($interval > -43200 ? $interval : $interval - 86400); |
|
| 560 | 558 | $calendaritem['props']['startdate'] = $calendaritem['props']['commonstart'] = $localStart; |
| 561 | 559 | $calendaritem['props']['duedate'] = $calendaritem['props']['commonend'] = $localStart + $duration; |
| 562 | 560 | } |