Browse Source

correction

Stefan Dickmann 11 years ago
parent
commit
da541f1ab9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Controller/Component/CommonComponent.php

+ 1 - 0
Controller/Component/CommonComponent.php

@@ -451,6 +451,7 @@ class CommonComponent extends Component {
 		if (!$conditionalAutoRedirect || empty($this->Controller->autoRedirectActions) || is_array($referer) && !empty($referer['action'])) {
 			// Be sure that controller offset exists, otherwise you
 			// will run into problems, if you use url rewriting.
+			$refererController = null;
 			if (isset($referer['controller'])) {
 				$refererController = Inflector::camelize($referer['controller']);
 			}