Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
deal with null accepted users
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed May 8, 2023
1 parent c7a7f97 commit 2dfae0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/RevaHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ public function ocmProvider() {

public function findAcceptedUsers($userId) {
$users = $this->revaGet('sciencemesh/find-accepted-users', $userId);
error_log("users " . var_export($users, true));
if ($users === "null\n") {
error_log("users corrected!");
$users = "[]";
}
return $users;
}

Expand Down

0 comments on commit 2dfae0c

Please sign in to comment.