diff -r 2251fb41dbc7 -r 1e110b03ae96 web/lib/Zend/Controller/Action/Helper/ContextSwitch.php --- a/web/lib/Zend/Controller/Action/Helper/ContextSwitch.php Sun Apr 21 10:07:03 2013 +0200 +++ b/web/lib/Zend/Controller/Action/Helper/ContextSwitch.php Sun Apr 21 21:54:24 2013 +0200 @@ -15,9 +15,9 @@ * @category Zend * @package Zend_Controller * @subpackage Zend_Controller_Action_Helper - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: ContextSwitch.php 20096 2010-01-06 02:05:09Z bkarwin $ + * @version $Id: ContextSwitch.php 24864 2012-06-02 00:51:50Z adamlundrigan $ */ /** @@ -32,7 +32,7 @@ * @category Zend * @package Zend_Controller * @subpackage Zend_Controller_Action_Helper - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Controller_Action_Helper_ContextSwitch extends Zend_Controller_Action_Helper_Abstract @@ -1304,7 +1304,6 @@ if (null === $controller) { return array(); } - $action = (string) $action; $contextKey = $this->_contextKey; if (!isset($controller->$contextKey)) { @@ -1312,6 +1311,7 @@ } if (null !== $action) { + $action = (string) $action; if (isset($controller->{$contextKey}[$action])) { return $controller->{$contextKey}[$action]; } else {