From 763305cd53954d3410164ec72bbfeafd7a80c6fc Mon Sep 17 00:00:00 2001 From: Nicolas Brassard Date: Fri, 24 Apr 2020 16:58:05 -0400 Subject: [PATCH] (fix) Get rid of Undefined index on php 7.3 --- symphony/content/content.blueprintspages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/symphony/content/content.blueprintspages.php b/symphony/content/content.blueprintspages.php index 71b6498588..64b58b8379 100644 --- a/symphony/content/content.blueprintspages.php +++ b/symphony/content/content.blueprintspages.php @@ -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)) { /** @@ -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']) {