diff --git a/lib/router.php b/lib/router.php index fbf56a1bb422164f2d0713ff4a4267dac78bbe97..dbaca9e0d5ddb1f4778b11a4e8b61434b1dfdc63 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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';