summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-04-16 20:52:12 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-04-16 20:52:12 +0200
commit26974d0465fa3b5a04b12791804326afdb0067f6 (patch)
treee1ea135ccc572d21e23bd8b4f71974333e9d6c6c /index.php
parent3764b61be7a2e200ea7e0445561e7dbdb3f82173 (diff)
downloadnextcloud-server-26974d0465fa3b5a04b12791804326afdb0067f6.tar.gz
nextcloud-server-26974d0465fa3b5a04b12791804326afdb0067f6.zip
fixing other peoples bad coding style ;-)
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
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();