Skip to content

Commit

Permalink
Merge pull request #1 from gilo-agilo/master
Browse files Browse the repository at this point in the history
FIXED 2 issues
  • Loading branch information
Peekmo committed Apr 3, 2014
2 parents d7cafd6 + e5550d2 commit bd9e7ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Peekmo/JsonPath/JsonPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private function slice($loc, $expr, $v, $path)
* @param string $x filter
* @param array $v node
* */
private function evalx($x, $v, $vname)
private function evalx($x, $v, $vname=null)
{
$name = "";
$o = $this->toObject($v);
Expand All @@ -169,7 +169,8 @@ private function evalx($x, $v, $vname)

private function toObject($array)
{
$o = (object)'';
//$o = (object)'';
$o = new stdClass();

foreach ($array as $key => $value) {
if (is_array($value)) {
Expand Down

0 comments on commit bd9e7ea

Please sign in to comment.