Skip to content

Commit

Permalink
(fix) Get rid of Undefined index on php 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Apr 24, 2020
1 parent 635440e commit 763305c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions symphony/content/content.blueprintspages.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public function __compare_pages($a, $b)

public function __actionIndex()
{
$checked = (is_array($_POST['items'])) ? array_keys($_POST['items']) : null;
$checked = (isset($_POST['items']) && is_array($_POST['items'])) ? array_keys($_POST['items']) : null;

if (is_array($checked) && !empty($checked)) {
/**
Expand Down Expand Up @@ -693,8 +693,8 @@ public function __actionEdit()
unset($fields['type']);

$fields['parent'] = ($fields['parent'] != __('None') ? $fields['parent'] : null);
$fields['data_sources'] = is_array($fields['data_sources']) ? implode(',', $fields['data_sources']) : null;
$fields['events'] = is_array($fields['events']) ? implode(',', $fields['events']) : null;
$fields['data_sources'] = isset($fields['data_sources']) && is_array($fields['data_sources']) ? implode(',', $fields['data_sources']) : null;
$fields['events'] = isset($fields['events']) && is_array($fields['events']) ? implode(',', $fields['events']) : null;
$fields['path'] = null;

if ($fields['parent']) {
Expand Down

0 comments on commit 763305c

Please sign in to comment.