From: Sven Schöling Date: Thu, 4 Dec 2014 18:04:58 +0000 (+0100) Subject: Layout: Tests schlagen fehl, weil Top auf $::dispatcher zugreift X-Git-Tag: release-3.2.0beta~202 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4ee1cfb08ed71173331fe2de06e83a5b2b81e6a2;p=kivitendo-erp.git Layout: Tests schlagen fehl, weil Top auf $::dispatcher zugreift --- diff --git a/SL/Layout/Top.pm b/SL/Layout/Top.pm index 53a8de794..165134ddc 100644 --- a/SL/Layout/Top.pm +++ b/SL/Layout/Top.pm @@ -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), ); }