Skip to content

Commit

Permalink
Fix null type check for array in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rickvb97-io committed Jul 4, 2024
1 parent 5353904 commit 4c43408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Plugin/Widget/Controller/Adminhtml/Widget/LoadOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function aroundExecute(
if (isset($request['values']['conditions_encoded'])) {
$conditions = $this->getConditionsHelper()->decode($request['values']['conditions_encoded']);
$conditions = array_map(function ($condition) {
$questionLists = $condition['question_lists'];
$questionLists = $condition['question_lists'] ?? [];
$newQuestionLists = array_map(function($item) {
if ($this->advancedWidgetHelper->isBase64($item['question_answer'])){
$item['question_answer'] = base64_decode($item['question_answer']);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jajuma/hyva-faq",
"description": "FAQ Widget for Hyvä Themes",
"type": "magento2-module",
"version": "1.1.5",
"version": "1.1.6",
"license": "MIT",
"authors": [
{
Expand Down

0 comments on commit 4c43408

Please sign in to comment.