aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 22:53:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 22:53:33 +0000
commit4bdb7cd1395417696070719b22dfdd5257f4b199 (patch)
treef267e6a8da3547693c381e0803a714cf31438cf2 /engine
parent16e27412e79bb0de47dd8e2d4ba7cffdd8945aaf (diff)
downloadelgg-4bdb7cd1395417696070719b22dfdd5257f4b199.tar.gz
elgg-4bdb7cd1395417696070719b22dfdd5257f4b199.tar.bz2
missed check for null parameters in web services parameter code
git-svn-id: http://code.elgg.org/elgg/trunk@7909 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-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