Commit 521b3912 authored by Leigh Stoller's avatar Leigh Stoller

Fix bug that was causing login button to always be displayed.

parent fe04cca2
......@@ -128,16 +128,14 @@ function SPITHEADER($thinheader = 0)
echo "<li id='loginstatus' class='apt-left'>".
($login_user ? "<p class='navbar-text'>$login_uid logged in</p>" : "") . "</li>\n";
if (!NOLOGINS()) {
echo "<li id='signupitem' class='apt-left'" .
($login_user ? "class='hidden'" : "") . ">" .
if (!NOLOGINS() && !$login_user) {
echo "<li id='signupitem' class='apt-left'>" .
"<form><a class='btn btn-primary navbar-btn'
id='signupbutton'
href='signup.php'>
Sign Up</a></form></li>
\n";
echo "<li id='loginitem' class='apt-left'" .
($login_user ? "class='hidden'" : "") . ">" .
echo "<li id='loginitem' class='apt-left'>" .
"<form><a class='btn btn-primary navbar-btn'
id='loginbutton'
data-toggle='modal'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment