Skip to content

Commit

Permalink
Merge pull request #2 from RickvanB/fix/array-null-check
Browse files Browse the repository at this point in the history
Fix null type check for array in plugin
  • Loading branch information
JaJuMa committed Jul 5, 2024
2 parents 5353904 + 4c43408 commit 0db099f
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 0db099f

Please sign in to comment.