BUG 11534 Error al derivar un caso mediante condicion SOLVED

Missing validation when $aMatch[5][$i][0] value not exists
Added missing validation
This commit is contained in:
Julio Cesar Laura
2013-05-02 16:24:25 -04:00
parent 50fedf9766
commit 198219772a

View File

@@ -341,7 +341,11 @@ class PMScript
if (!isset($this->aFields[$aMatch[2][$i][0]])) {
eval("\$this->aFields['" . $aMatch[2][$i][0] . "']" . $aMatch[5][$i][0] . " = '';");
} else {
eval("if (!isset(\$this->aFields['" . $aMatch[2][$i][0] . "']" . $aMatch[5][$i][0] . ")) {\$this->aFields['" . $aMatch[2][$i][0] . "']" . $aMatch[5][$i][0] . " = '';}");
if (isset($aMatch[5][$i][0])) {
eval("if (!isset(\$this->aFields['" . $aMatch[2][$i][0] . "']" . $aMatch[5][$i][0] . ")) {\$this->aFields['" . $aMatch[2][$i][0] . "']" . $aMatch[5][$i][0] . " = '';}");
} else {
eval("if (!isset(\$this->aFields['" . $aMatch[2][$i][0] . "'])) {\$this->aFields['" . $aMatch[2][$i][0] . "'] = '';}");
}
}
}
$sAux = substr( $this->sScript, $iAux, $aMatch[0][$i][1] - $iAux );