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 5c1b381 commit 9f94d0dc51091da2f889be381469d6a5885d6ea6
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/view/helpers/ajax.php
@@ -207,7 +207,7 @@ function link($title, $href = null, $options = array(), $confirm = null, $escape
$options['url'] = $href;
}
if (isset($confirm)) {
if (!empty($confirm)) {
$options['confirm'] = $confirm;
unset($confirm);
}
@@ -988,4 +988,4 @@ function afterRender() {
}
}
?>
?>

0 comments on commit 9f94d0d

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