Skip to content

Commit

Permalink
Dev: Clearer if-condition
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Mar 18, 2020
1 parent cabaa73 commit b6d6f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -2088,7 +2088,7 @@ public function list_participants($sSessionKey, $iSurveyID, $iStart = 0, $iLimit
}

$aAttributeValues = array();
if (count($aConditions)) {
if (count($aConditions) > 0) {
$aConditionFields = array_flip(Token::model($iSurveyID)->getMetaData()->tableSchema->columnNames);
$aAttributeValues = array_intersect_key($aConditions, $aConditionFields);
}
Expand Down

0 comments on commit b6d6f76

Please sign in to comment.