From 7f93bf1f5bab6ecce8797a58ea2d3b58cfcc988a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 24 May 2012 16:44:36 +0200 Subject: [PATCH] [TwigBundle] fixed a PHP warning (closes #4397) --- .../Bundle/TwigBundle/Controller/ExceptionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php index d676f82086..009e082919 100644 --- a/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php +++ b/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php @@ -46,7 +46,7 @@ class ExceptionController extends ContainerAware $this->findTemplate($templating, $format, $code, $this->container->get('kernel')->isDebug()), array( 'status_code' => $code, - 'status_text' => Response::$statusTexts[$code], + 'status_text' => isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '', 'exception' => $exception, 'logger' => $logger, 'currentContent' => $currentContent,