From e35e3c0e5bf1b26abe2273a175ea69c00759267b Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 29 Apr 2015 07:55:24 +0000 Subject: [PATCH] auth : already signed in HTML page is now HTML compliant git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2088 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- auth.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/auth.php b/auth.php index 6c6a774..5882e79 100644 --- a/auth.php +++ b/auth.php @@ -100,11 +100,13 @@ class auth $res .= "

".dgettext("domframework", "Already sign in"); $res .= "

\n"; - $res .= "

".dgettext ("domframework", "Click here to logout")."

\n"; - + if (is_string ($alreadyAuth)) + $res .= "

$alreadyAuth

\n"; + $res .= "

". + dgettext ("domframework", "Click here to logout")."

\n"; } - if ($message !== "") - $res .= "
$message
"; + if ($message !== "" && $message !== null) + $res .= "
$message
\n"; $res .= " \n"; $res .= "\n"; $res .= "\n";