diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/index.php b/index.php index a3835c6d2f3..787485555fb 100644 --- a/index.php +++ b/index.php @@ -50,14 +50,12 @@ if($_SERVER['REQUEST_METHOD']=='PROPFIND'){ // Someone is logged in : elseif(OC_User::isLoggedIn()) { + OC_App::loadApps(); if(isset($_GET["logout"]) and ($_GET["logout"])) { - OC_App::loadApps(); OC_User::logout(); header("Location: ".OC::$WEBROOT.'/'); exit(); - } - else { - OC_App::loadApps(); + }else{ if(is_null(OC::$REQUESTEDFILE)){ OC::loadapp(); }else{ |