aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php
index c1ade103a..ad1503f63 100644
--- a/engine/lib/api.php
+++ b/engine/lib/api.php
@@ -479,8 +479,8 @@
// Check that the variable is present in the request
if (
- (!isset($parameters[$key])) && // No parameter
- ((!isset($value['required'])) || ($value['required']!=true)) // and not optional
+ (!isset($parameters[$key])) || // No parameter
+ ((!isset($value['required'])) || ($value['required']==true)) // Or not optional
)
throw new APIException(sprintf(elgg_echo('APIException:MissingParameterInMethod'), $key, $method));
else