Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if $message returns false #7

Merged
merged 1 commit into from
May 18, 2023
Merged

Conversation

matidau
Copy link
Collaborator

@matidau matidau commented May 17, 2023

Released under the GNU Affero General Public License (AGPL), version 3.

What does this implement/fix? Explain your changes.

backend->GetMessage can return false instead of an object. Check before setting flag.

Does this close any currently open issues?

#5

Any relevant logs, error output, etc?

same as raised in issue

PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property "flags" on bool in /z-push/lib/default/diffbackend/exportchangesdiff.p
hp:163

Where has this been tested?

Server (please complete the following information):

  • OS: Ubuntu 22.04
  • PHP Version: 8.2
  • Backend for: CardDav
  • and Version: NA

Smartphone (please complete the following information):

  • Device: Xiaomi and Computer
  • OS: Android and windows
  • Mail App GMail and Thunderbird with TBSync
  • Version latest

Recreated same issue as in Zimbra backend with CardDav backend. Likely affected all backends when returning false occurred.

Released under the GNU Affero General Public License (AGPL), version 3.
@matidau matidau linked an issue May 17, 2023 that may be closed by this pull request
@matidau
Copy link
Collaborator Author

matidau commented May 18, 2023

Confirmed working

#5 (comment)

@matidau matidau merged commit 6458636 into develop May 18, 2023
@matidau matidau deleted the 5-error-on-openbsd-73-php-82 branch May 18, 2023 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on OpenBSD 7.3 - php 8.2
1 participant