BUG 7221 Notice for indefined array fixed.

This commit is contained in:
Enrique Ponce De Leon
2011-07-13 18:34:47 -04:00
parent 062f7155ae
commit cbb4f0f5ea

View File

@@ -3089,7 +3089,10 @@ class XmlForm_Field_Grid extends XmlForm_Field
if ($therow != -1){ if ($therow != -1){
//Check if values arrary is complete to can flip. //Check if values arrary is complete to can flip.
$xValues = array(); $xValues = array();
$aRow = $values[$therow]; if (isset($values[$therow]))
$aRow = $values[$therow];
else
$aRow = array();
for ($c=1; $c <= $therow; $c++){ for ($c=1; $c <= $therow; $c++){
if ($c == $therow){ if ($c == $therow){
$xValues[$therow] = $aRow; $xValues[$therow] = $aRow;