]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing other peoples bad coding style ;-)
authorFrank Karlitschek <karlitschek@kde.org>
Sat, 16 Apr 2011 18:52:12 +0000 (20:52 +0200)
committerFrank Karlitschek <karlitschek@kde.org>
Sat, 16 Apr 2011 18:52:12 +0000 (20:52 +0200)
index.php

index b1172382ec6de103fc16047f5fceb00dc05ba3a2..d1c01a6dfaa4c52be58a07a8108dfcb2968cf7a1 100644 (file)
--- 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();