From 622a0d80b92f6aefb02b9e2981215c05de549bc0 Mon Sep 17 00:00:00 2001 From: azett Date: Wed, 15 Apr 2020 14:46:55 +0200 Subject: [PATCH] Fixed "syntax error, unexpected '['" bug under PHP 5.3, reported here: https://forum.flatpress.org/viewtopic.php?f=2&t=131 --- fp-includes/core/core.draft.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.draft.php b/fp-includes/core/core.draft.php index e001340..a7e15c4 100644 --- a/fp-includes/core/core.draft.php +++ b/fp-includes/core/core.draft.php @@ -183,7 +183,8 @@ function smarty_block_draft($params, $content, &$smarty, &$repeat) { if ($arr) { $firstElement = utils_array_kshift($arr); $id = array_keys($firstElement); - $subject = $firstElement [$id [0]]; + $id = $id [0]; + $subject = $firstElement [$id]; } if ($id) {