Skip to content

Commit cf4ba01

Browse files
author
bruno_p_reis
committed
minor bug, was showing wrong paths
git-svn-id: https://jsonschemaphpv.svn.sourceforge.net/svnroot/jsonschemaphpv/trunk@3 14558f9d-7ea9-46ec-92da-52a2cad6a683
1 parent 4b9018f commit cf4ba01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JsonSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ static function _validate($instance,$schema = null,$_changing) {
6666
}
6767

6868
static function incrementPath($path,$i) {
69-
if($path) {
69+
if($path !== '') {
7070
if(is_int($i)) {
7171
$path .= '['.$i.']';
7272
}
73-
elseif($i = '') {
73+
elseif($i == '') {
7474
$path .= '';
7575
}
7676
else {

0 commit comments

Comments
 (0)