From cf4ba01071aa529afe741a728a8aac6f565cece5 Mon Sep 17 00:00:00 2001
From: bruno_p_reis <bruno_p_reis@14558f9d-7ea9-46ec-92da-52a2cad6a683>
Date: Fri, 19 Dec 2008 17:46:45 +0000
Subject: [PATCH] minor bug, was showing wrong paths

git-svn-id: https://jsonschemaphpv.svn.sourceforge.net/svnroot/jsonschemaphpv/trunk@3 14558f9d-7ea9-46ec-92da-52a2cad6a683
---
 JsonSchema.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/JsonSchema.php b/JsonSchema.php
index 76c155a..20314a3 100644
--- a/JsonSchema.php
+++ b/JsonSchema.php
@@ -66,11 +66,11 @@ class JsonSchema {
   }
   
   static function incrementPath($path,$i) {
-    if($path) {
+    if($path !== '') {
 	  if(is_int($i)) {
 	    $path .= '['.$i.']';
 	  }
-	  elseif($i = '') {
+	  elseif($i == '') {
 	    $path .= '';
 	  }
 	  else {