This commit is contained in:
qronald
2017-04-24 09:42:47 -04:00
parent 37c44e0ac5
commit fc10cccd79

View File

@@ -2331,7 +2331,9 @@ class Cases
$rs->next();
$row = $rs->getRow();
$iLastStep = intval($row[0]);
if($iPosition > $iLastStep) {
throw (new Exception(G::LoadTranslation("ID_NO_RECORDS_FOUND")));
}
$iPosition += 1;
$aNextStep = null;
if ($iPosition <= $iLastStep) {