From: Frank Karlitschek Date: Sat, 16 Apr 2011 18:52:12 +0000 (+0200) Subject: fixing other peoples bad coding style ;-) X-Git-Tag: v3.0~267^2~558^2~129 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=26974d0465fa3b5a04b12791804326afdb0067f6;p=nextcloud-server.git fixing other peoples bad coding style ;-) --- 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();