diff --git a/footer.php b/footer.php index 166e8d7..4966fec 100644 --- a/footer.php +++ b/footer.php @@ -1,7 +1,9 @@ '; -echo '
| Preferred game account: ' . $_SESSION['prefaccname'] . ' | Preferred character: ' . $_SESSION['prefcharname'] . ' |

'; +if (isset($_SESSION['prefaccname']) && ($_SESSION['prefcharname'])) { + echo '
| Currently selected game account: ' . $_SESSION['prefaccname'] . ' | Current character: ' . $_SESSION['prefcharname'] . ' |

'; +} // the footer just adds a logout button at the bottom of every page for the currently logged in user if (isset($_SESSION['userid']) && ($_SESSION['username'])) { echo '


';