diff --git a/include.php b/include.php
index 243c83a..9889399 100644
--- a/include.php
+++ b/include.php
@@ -550,7 +550,7 @@ function WriteStandardHeader($myMsg)
echo "
";
// If a user is logged in, display logout text
- if( isset($_COOKIE["usr"]) || $_COOKIE["usr"] != "|")
+ if( isset($_COOKIE["usr"]) && $_COOKIE["usr"] != "|")
{
echo '