From b6fdadad32f25d2063226afae9a5e94b31c859e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20Dvo=C5=99=C3=A1k?= Date: Sat, 6 May 2017 01:25:40 +0200 Subject: [PATCH] Show Last request Frame only when signe in --- src/classes/ui/WebPage.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/classes/ui/WebPage.php b/src/classes/ui/WebPage.php index 35fd29e..05421c5 100644 --- a/src/classes/ui/WebPage.php +++ b/src/classes/ui/WebPage.php @@ -54,9 +54,12 @@ public function __construct($pageTitle = null, &$userObject = null) $this->head->addItem(''); $this->head->addItem(''); $this->head->addItem(''); - $this->addItem(new FlexiURL(isset($_SESSION['lasturl']) ? $_SESSION['lasturl'] : null, - ['id' => 'lasturl', 'class' => 'innershadow'])); + $userID = $userObject->getUserID(); + if ($userID) { //Authenticated user + $this->addItem(new FlexiURL(isset($_SESSION['lasturl']) ? $_SESSION['lasturl'] : null, + ['id' => 'lasturl', 'class' => 'innershadow'])); + } $this->container = $this->addItem(new \Ease\TWB\Container()); $this->includeJavaScript('js/jquery.keepAlive.js');