Layout: Tests schlagen fehl, weil Top auf $::dispatcher zugreift
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 4 Dec 2014 18:04:58 +0000 (19:04 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 4 Dec 2014 18:07:11 +0000 (19:07 +0100)
SL/Layout/Top.pm

index 53a8de7..165134d 100644 (file)
@@ -8,7 +8,7 @@ sub pre_content {
 
   $self->presenter->render('menu/header',
     now        => DateTime->now_local,
-    is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i),
+    is_fastcgi => $::dispatcher ? scalar($::dispatcher->interface_type =~ /fastcgi/i) : (),
     is_links   => scalar($ENV{HTTP_USER_AGENT}         =~ /links/i),
   );
 }