Bugfixes and more conversions to PHP 7

This commit is contained in:
djmaze 2020-03-10 18:45:00 +01:00
parent 2cada68f41
commit 3a7ec4ecb0
100 changed files with 238 additions and 992 deletions

View file

@ -260,7 +260,7 @@ class PDO extends AbstractBackend {
$hasError = true;
$result[403][$propertyName] = null;
unset($mutations[$propertyName]);
continue;
break;
}
$fieldName = $this->propertyMap[$propertyName];

View file

@ -120,10 +120,10 @@ class ICSExportPlugin extends DAV\ServerPlugin {
// VTIMEZONE is special, because we need to filter out the duplicates
case 'VTIMEZONE' :
// Naively just checking tzid.
if (in_array((string)$child->TZID, $collectedTimezones)) continue;
$timezones[] = $child;
$collectedTimezones[] = $child->TZID;
if (!in_array((string)$child->TZID, $collectedTimezones)) {
$timezones[] = $child;
$collectedTimezones[] = $child->TZID;
}
break;
}