Store session in database.
[readifood.git] / lib / header.php
index 1451a04..a2432d3 100644 (file)
@@ -12,7 +12,7 @@
 <body>
 
 <p id="header">
-<?php if ($username) { ?>
+<?php if (isset($username)) { ?>
 <a href="/city">Cities</a>
 /
 <a href="/area">Areas</a>
@@ -30,7 +30,7 @@
 <a href="/report">Reports</a>
 
 <strong class="small"><em><?php echo $username; ?></em>@<?php echo $charity; ?></strong>
-<a href="/logout" class="smaller">logout</a>
+<a href="/logout.php" class="smaller">logout</a>
 <?php } else echo "<strong>$charity</strong>"; ?>
 </p>