fix various bugs

This commit is contained in:
Marc Michalsky forumZFD 2021-01-18 17:07:07 +01:00
parent 71eb428bb8
commit 05d8941e8a
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
3 changed files with 5 additions and 4 deletions

View file

@ -150,7 +150,7 @@ class CRM_TwingleCampaign_BAO_TwingleApiCall {
$result = array_merge($result, $response['data']);
}
else {
$result = $response;
$result = $response['data'];
}
}
return $result;

View file

@ -310,7 +310,7 @@ class CRM_TwingleCampaign_BAO_TwingleEvent extends Campaign {
* @return array
* Returns a response array that contains title, id, project_id and status
*/
public function getResponse(string $status) {
public function getResponse(string $status): array {
return [
'title' => $this->values['description'],
'id' => (int) $this->id,