diff --git a/application/helpers/remotecontrol/remotecontrol_handle.php b/application/helpers/remotecontrol/remotecontrol_handle.php index c89f0fa4057..1781b671c1d 100644 --- a/application/helpers/remotecontrol/remotecontrol_handle.php +++ b/application/helpers/remotecontrol/remotecontrol_handle.php @@ -2184,12 +2184,12 @@ public function list_participants($sSessionKey, $iSurveyID, $iStart = 0, $iLimit $oCriteria = new CDbCriteria(); $oCriteria->order = 'tid'; $oCriteria->limit = $iLimit; + $oCriteria->compare('tid', '>=' . $iStart); $aAttributeValues = array(); if (count($aConditions) > 0) { $aConditionFields = array_flip(Token::model($iSurveyID)->getMetaData()->tableSchema->columnNames); - // NB: $valueOrTuple is either a value or tuple like [$operator, $value]. - $oCriteria->compare('tid', '>=' . $iStart); + // NB: $valueOrTuple is either a value or tuple like [$operator, $value]. foreach ($aConditions as $columnName => $valueOrTuple) { if (is_array($valueOrTuple)) { /** @var string[] List of operators allowed in query. */