Skip to content
This repository
Browse code

afterRender should not be triggered when callbacks is false

  • Loading branch information...
commit 6fc019e74d9f59610927f5f38915eff6b4c0f9ec 1 parent d201030
ceeram authored October 25, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Cake/View/View.php
2  lib/Cake/View/View.php
@@ -1165,7 +1165,7 @@ protected function _renderElement($file, $data, $options) {
1165 1165
 		$this->_currentType = $restore;
1166 1166
 		$this->_current = $current;
1167 1167
 
1168  
-		if (isset($options['callbacks'])) {
  1168
+		if ($options['callbacks']) {
1169 1169
 			$this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($file, $element)));
1170 1170
 		}
1171 1171
 		if (isset($options['cache'])) {

0 notes on commit 6fc019e

Please sign in to comment.
Something went wrong with that request. Please try again.