Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ors. Fixes #902
  • Loading branch information...
commit 9f94d0dc51091da2f889be381469d6a5885d6ea6 1 parent 5c1b381
@markstory markstory authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/view/helpers/ajax.php
View
4 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.
Something went wrong with that request. Please try again.