fix wrong return type
This commit is contained in:
parent
a4cda1427b
commit
bfa3ae7e32
1 changed files with 1 additions and 8 deletions
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue