PMCORE-3363 'Step for task' frame has an error in the stack N275 and 275

This commit is contained in:
Roly Gutierrez
2021-09-23 16:29:45 -04:00
parent 5146d8b7e4
commit 28e1614999

View File

@@ -215,7 +215,7 @@ class StepTrigger extends BaseStepTrigger
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$oDataset->next();
$aRow = $oDataset->getRow();
if ((int)$aRow['ST_POSITION'] > 1 ) {
if (is_array($aRow) && (int) $aRow['ST_POSITION'] > 1) {
$rowNro = 1;
while ($aRow = $oDataset->getRow()) {
$oStep = StepTriggerPeer::retrieveByPK( $aRow['STEP_UID'], $aRow['TAS_UID'], $aRow['TRI_UID'], $aRow['ST_TYPE'] );