Qual: Better hint for index value for phan (#28712)
# Qual: Better hint for index value for phan. ($i - 1) must be >= 0, so update test from $i>0 to $i>=1 . This helps static analysis.
This commit is contained in:
parent
d846044e38
commit
f309d1634c
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ function dol_json_decode($json, $assoc = false)
|
|||
} else {
|
||||
$out .= $json[$i];
|
||||
}
|
||||
if ($i > 0 && $json[$i] == '"' && $json[($i - 1)] != "\\") {
|
||||
if ($i >= 1 && $json[$i] == '"' && $json[$i - 1] != "\\") {
|
||||
$comment = !$comment;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue