diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 1d608e10b1e..fe023192d88 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -1165,7 +1165,7 @@ protected function _renderElement($file, $data, $options) { $this->_currentType = $restore; $this->_current = $current; - if (isset($options['callbacks'])) { + if ($options['callbacks']) { $this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($file, $element))); } if (isset($options['cache'])) {