From 26974d0465fa3b5a04b12791804326afdb0067f6 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Sat, 16 Apr 2011 20:52:12 +0200 Subject: [PATCH] fixing other peoples bad coding style ;-) --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();