diff options
Diffstat (limited to 'includes/xmlrpcs.inc')
-rw-r--r-- | includes/xmlrpcs.inc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/xmlrpcs.inc b/includes/xmlrpcs.inc index 8fe46ce4e..96f9a46d8 100644 --- a/includes/xmlrpcs.inc +++ b/includes/xmlrpcs.inc @@ -97,7 +97,7 @@ function xmlrpc_server($callbacks) { * @param $message * description of error, used only if integer error code was passed */ -function xmlrpc_server_error($error, $message = false) { +function xmlrpc_server_error($error, $message = FALSE) { if ($message && !is_object($error)) { $error = xmlrpc_error($error, $message); } @@ -156,7 +156,7 @@ function xmlrpc_server_call($xmlrpc_server, $methodname, $args) { // If the method has a signature, validate the request against the signature if (is_array($signature)) { - $ok = true; + $ok = TRUE; $return_type = array_shift($signature); // Check the number of arguments if (count($args) != count($signature)) { @@ -169,30 +169,30 @@ function xmlrpc_server_call($xmlrpc_server, $methodname, $args) { case 'int': case 'i4': if (is_array($arg) || !is_int($arg)) { - $ok = false; + $ok = FALSE; } break; case 'base64': case 'string': if (!is_string($arg)) { - $ok = false; + $ok = FALSE; } break; case 'boolean': - if ($arg !== false && $arg !== true) { - $ok = false; + if ($arg !== FALSE && $arg !== TRUE) { + $ok = FALSE; } break; case 'float': case 'double': if (!is_float($arg)) { - $ok = false; + $ok = FALSE; } break; case 'date': case 'dateTime.iso8601': if (!$arg->is_date) { - $ok = false; + $ok = FALSE; } break; } @@ -219,10 +219,10 @@ function xmlrpc_server_multicall($methodcalls) { $return = array(); $xmlrpc_server = xmlrpc_server_get(); foreach ($methodcalls as $call) { - $ok = true; + $ok = TRUE; if (!isset($call['methodName']) || !isset($call['params'])) { $result = xmlrpc_error(3, t('Invalid syntax for system.multicall.')); - $ok = false; + $ok = FALSE; } $method = $call['methodName']; $params = $call['params']; |