Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hotfix for older baked templates regarding postLink()
  • Loading branch information
euromark committed May 13, 2014
1 parent 418c0a7 commit 8af76a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1799,7 +1799,7 @@ public function postButton($title, $url, $options = array()) {
* @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__;
}
Expand Down

2 comments on commit 8af76a3

@mirceaagr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix works nicely.. thanks

@davidyell
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh good shout!

Please sign in to comment.