authentication : if logout url is null, do not crash and redirect to authentication page

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4946 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-02-05 09:26:08 +00:00
parent df3be0f443
commit af90b69761

View File

@@ -98,7 +98,7 @@ class authentication
unset ($_SESSION["domframework"]["authentication"]);
if ($this->debug) echo "Redirect to authentication page";
if ($this->debug) $this->route->debug = $this->debug;
if ($url === "")
if ($url === "" || $url === null)
{
$_SESSION["domframework"]["authentication"]["message"] =
dgettext("domframework", "You have been logged out");