Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update jsonrpc2.class.php

Fixing assoc. array check per report bug at http://code.google.com/p/jsonrpc2php/issues/detail?id=1
  • Loading branch information...
commit fcf32c1b3c611c9e407a9e01c44af45e2648bdc5 1 parent 2957e7e
@mpcm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jsonrpc2.class.php
View
2  jsonrpc2.class.php
@@ -234,7 +234,7 @@ private function checkParams($real, $sent) {
// if not an object, check if it is an associative array
if(!$is_obj){
// check if the param list is an array
- $is_assoc = array_keys ( $sent ) != range ( 0, count ( $sent ) - 1 );
+ $is_assoc = array_keys ( $sent ) !== range ( 0, count ( $sent ) - 1 );
}
// create the param list we are going to use to invoke the object
Please sign in to comment.
Something went wrong with that request. Please try again.