diff --git a/core/control/Director.php b/core/control/Director.php index 1cb88b07a..b7cd2ae3f 100644 --- a/core/control/Director.php +++ b/core/control/Director.php @@ -151,7 +151,7 @@ class Director { // Really, it's some inapproriate coupling and should be resolved by making less use of statics $oldStage = Versioned::current_stage(); - if(!$httpMethod) $httpMethod = $postVars ? "POST" : "GET"; + if(!$httpMethod) $httpMethod = ($postVars || is_array($postVars)) ? "POST" : "GET"; $getVars = array(); if(strpos($url,'?') !== false) {