<body>
<p id="header">
-<?php if ($username) { ?>
+<?php if (isset($username)) { ?>
<a href="/city">Cities</a>
/
<a href="/area">Areas</a>
<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>