From 8af76a3705655007d012d123776c076ac3374b40 Mon Sep 17 00:00:00 2001 From: euromark Date: Tue, 13 May 2014 20:51:39 +0200 Subject: [PATCH] Hotfix for older baked templates regarding postLink() --- lib/Cake/View/Helper/FormHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 6026b4bc4..ce9fc91ca 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -1799,7 +1799,7 @@ class FormHelper extends AppHelper { * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::postLink */ public function postLink($title, $url = null, $options = array(), $confirmMessage = false) { - $options += array('inline' => true, 'block' => null); + $options = (array)$options + array('inline' => true, 'block' => null); if (!$options['inline'] && empty($options['block'])) { $options['block'] = __FUNCTION__; }