Skip to content

Commit

Permalink
Changing check in AjaxHelper::link() so lazy users don't get type err…
Browse files Browse the repository at this point in the history
…ors. Fixes #902
  • Loading branch information
markstory committed Jul 11, 2010
1 parent 5c1b381 commit 9f94d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/view/helpers/ajax.php
Expand Up @@ -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);
}
Expand Down Expand Up @@ -988,4 +988,4 @@ function afterRender() {
}
}

?>
?>

0 comments on commit 9f94d0d

Please sign in to comment.