foreach() argument must be of type array|object, null given in workflow_notifications_cron()

Created on 3 September 2024, 2 months ago

Problem/Motivation

Warning: foreach() argument must be of type array|object, null given in workflow_notifications_cron() (line 88 of /app/web/modules/contrib/workflow_notifications/workflow_notifications.module)

Steps to reproduce

Create Drupal installation using workflow_notifications module and do not add any Workflow Notifications of type `before_state_change` -> run cron.

Proposed resolution

Add conditional check for `$result` variable.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States codesquatch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024