From 46ea50e6b00a5029d781ab671e3be48e758fcc46 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 19 Sep 2012 20:11:57 +0200 Subject: [PATCH] Store the authentication status internally in the router so that it can be used outside the included file --- components/component.router.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/component.router.php b/components/component.router.php index b145afa..f3c90d5 100644 --- a/components/component.router.php +++ b/components/component.router.php @@ -120,10 +120,12 @@ class CPHPRouter extends CPHPBaseClass if($authenticated === true) { $destination = $route_destination['target']; + $this->sAuthenticated = true; } else { $destination = $sRouterErrorDestination; + $this->sAuthenticated = false; } } else