aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/web_services.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/web_services.php b/engine/lib/web_services.php
index f39f5aef1..f928dc29a 100644
--- a/engine/lib/web_services.php
+++ b/engine/lib/web_services.php
@@ -280,7 +280,7 @@ function get_parameters_for_method($method) {
if (isset($API_METHODS[$method]['parameters'])) {
foreach ($API_METHODS[$method]['parameters'] as $k => $v) {
$param = get_input($k); // Make things go through the sanitiser
- if ($param !== '') {
+ if ($param !== '' && $param !== null) {
$sanitised[$k] = $param;
} else {
// parameter wasn't passed so check for default