mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-03-22 15:19:48 +01:00
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:
parent
4b9018fa97
commit
cf4ba01071
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user