From 6fc019e74d9f59610927f5f38915eff6b4c0f9ec Mon Sep 17 00:00:00 2001 From: Ceeram Date: Thu, 25 Oct 2012 01:16:16 +0200 Subject: [PATCH] afterRender should not be triggered when callbacks is false --- lib/Cake/View/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) {