duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
147 stars 41 forks source link

Database Orders: Add `is_array` check before checking array has key #851

Closed duncanmcclean closed 1 year ago

duncanmcclean commented 1 year ago

This pull request fixes an issue you might run into when using database orders when the data column is null instead of being an array of data.

Error

array_key_exists(): Argument #2 ($array) must be of type array, null given (View: /Users/<home>/Sites/<site_name>/vendor/doublethreedigital/runway/resources/views/edit.blade.php)

Related Discord conversation: https://discord.com/channels/489818810157891584/489862989101662218/1083456989394387065

github-actions[bot] commented 1 year ago

Released as part of v4.5.8.