Fix previous commit

This commit is contained in:
Robin Appelman 2013-02-07 18:30:01 +01:00
parent f3f55654ce
commit 73ed62976d
1 changed files with 1 additions and 1 deletions

View 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';