Skip to content

Commit

Permalink
Merge pull request #7 from Z-Hub/5-error-on-openbsd-73-php-82
Browse files Browse the repository at this point in the history
Check if $message returns false
  • Loading branch information
matidau authored May 18, 2023
2 parents ffad63a + d76a9ab commit 6458636
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/default/diffbackend/exportchangesdiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ public function Synchronize() {
$message = $this->backend->GetMessage($this->folderid, $change["id"], $this->contentparameters);

// copy the flag to the message
$message->flags = (isset($change["flags"])) ? $change["flags"] : 0;
if($message)
$message->flags = (isset($change["flags"])) ? $change["flags"] : 0;

if($stat && $message) {
if($this->flags & BACKEND_DISCARD_DATA || $this->importer->ImportMessageChange($change["id"], $message) == true)
Expand Down

0 comments on commit 6458636

Please sign in to comment.