diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php index b1172382ec6..d1c01a6dfaa 100644 --- a/index.php +++ b/index.php @@ -30,7 +30,7 @@ $errors=OC_UTIL::checkServer(); if(count($errors)>0){ OC_TEMPLATE::printGuestPage( "", "error", array( "errors" => $errors )); }elseif( OC_USER::isLoggedIn()){ - if( $_GET["logout"] ){ + if( isset($_GET["logout"]) and ($_GET["logout"]) ){ OC_USER::logout(); header( "Location: $WEBROOT"); exit(); |