Skip to content
Permalink
Browse files

Changing check in AjaxHelper::link() so lazy users don't get type err…

…ors. Fixes #902
  • Loading branch information...
markstory committed Jul 11, 2010
1 parent 65efd67 commit 6d8724097e675ec5e4fc9ac1a10abc52a96410f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/view/helpers/ajax.php
@@ -218,7 +218,7 @@ function link($title, $url = null, $options = array(), $confirm = null) {
$options['url'] = $url;
}
if (isset($confirm)) {
if (!empty($confirm)) {
$options['confirm'] = $confirm;
unset($confirm);
}

0 comments on commit 6d87240

Please sign in to comment.
You can’t perform that action at this time.