Skip to content

Commit

Permalink
Merge branch 'pu/ps/webdavHttpReq' into '2024.11'
Browse files Browse the repository at this point in the history
tweak(Calendar/Frontend/WebDAV): httpRequest might be null

See merge request tine20/tine20!6053
  • Loading branch information
pschuele committed Oct 10, 2024
2 parents ebe3a0d + 47b1021 commit 6e912ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tine20/Calendar/Frontend/WebDAV/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public function getChild($_name)

// lie about existence of event if request is a PUT request from an ATTENDEE for an already existing event
// to prevent ugly (and not helpful) error messages on the client
if (isset($_SERVER['REQUEST_METHOD']) && $httpRequest->getMethod() == 'PUT' && ($httpRequest->getHeader('If-None-Match') ?: null)?->getFieldValue() === '*') {
if (isset($_SERVER['REQUEST_METHOD']) && $httpRequest && $httpRequest->getMethod() === 'PUT'
&& ($httpRequest->getHeader('If-None-Match') ?: null)?->getFieldValue() === '*'
) {
if (
$object->organizer != Tinebase_Core::getUser()->contact_id &&
Calendar_Model_Attender::getOwnAttender($object->attendee) !== null
Expand Down

0 comments on commit 6e912ff

Please sign in to comment.