]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix previous commit
authorRobin Appelman <icewind@owncloud.com>
Thu, 7 Feb 2013 17:30:01 +0000 (18:30 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 7 Feb 2013 17:30:01 +0000 (18:30 +0100)
lib/router.php

index fbf56a1bb422164f2d0713ff4a4267dac78bbe97..dbaca9e0d5ddb1f4778b11a4e8b61434b1dfdc63 100644 (file)
@@ -23,7 +23,7 @@ class OC_Router {
 
        public function __construct() {
                $baseUrl = OC_Helper::linkTo('', 'index.php');
-               if (OC::$CLI) {
+               if ( !OC::$CLI) {
                        $method = $_SERVER['REQUEST_METHOD'];
                }else{
                        $method = 'GET';