Browse Source

Hotfix for older baked templates regarding postLink()

euromark 12 years ago
parent
commit
8af76a3705
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/View/Helper/FormHelper.php

+ 1 - 1
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__;
 		}