Skip to content
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...
1 parent 2957e7e commit fcf32c1b3c611c9e407a9e01c44af45e2648bdc5 @mpcm committed Aug 4, 2012
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

0 comments on commit fcf32c1

Please sign in to comment.
Something went wrong with that request. Please try again.