Skip to content

Commit

Permalink
Fix but with logging email change event in cc
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPoppe committed Nov 12, 2021
1 parent 4c2e822 commit 55a7c37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/classes/ParticipantHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ public function getEnrolledProjects(int $rcpro_participant_id)
while ($row = $result->fetch_assoc()) {
array_push($project_ids, $row["project_id"]);
}
if (count($project_ids) === 0) {
array_push($project_ids, NULL);
}
return $project_ids;
} catch (\Exception $e) {
self::$module->logError("Error fetching enrolled projects", $e);
Expand Down

0 comments on commit 55a7c37

Please sign in to comment.