diff --git a/libraries/joomla/input/input.php b/libraries/joomla/input/input.php index ac065c066a738..16aba38442a67 100644 --- a/libraries/joomla/input/input.php +++ b/libraries/joomla/input/input.php @@ -300,7 +300,9 @@ public function __call($name, $arguments) */ public function getMethod() { - $method = strtoupper($_SERVER['REQUEST_METHOD']); + // Get method if exist + $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : ''; + $method = strtoupper($method); return $method; }