Changing check in AjaxHelper::link() so lazy users don't get type errors. Fixes #902

This commit is contained in:
mark_story 2010-07-11 13:47:40 -04:00
parent 65efd675c1
commit 6d8724097e

View file

@ -218,7 +218,7 @@ class AjaxHelper extends AppHelper {
$options['url'] = $url;
}
if (isset($confirm)) {
if (!empty($confirm)) {
$options['confirm'] = $confirm;
unset($confirm);
}