fix wrong return type

This commit is contained in:
Marc Michalsky 2023-08-14 16:11:30 +02:00
parent a4cda1427b
commit bfa3ae7e32
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -181,15 +181,8 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
return FALSE;
}
$result = parent::create($no_hook);
return parent::create($no_hook);
// Check if campaign was created successfully
if ($result['is_error'] == 0) {
return TRUE;
}
else {
throw new Exception($result['error_message']);
}
}
/**