minor bug, was showing wrong paths

git-svn-id: https://jsonschemaphpv.svn.sourceforge.net/svnroot/jsonschemaphpv/trunk@3 14558f9d-7ea9-46ec-92da-52a2cad6a683
This commit is contained in:
bruno_p_reis 2008-12-19 17:46:45 +00:00
parent 4b9018fa97
commit cf4ba01071

View File

@ -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 {