Corrected throw new exception
authorJose Torres <jtorres@pesc.com>
Mon, 8 Aug 2016 22:42:40 +0000 (15:42 -0700)
committerGitHub <noreply@github.com>
Mon, 8 Aug 2016 22:42:40 +0000 (15:42 -0700)
api/v3/Membership.php

index ef3ee0759e5c65bf7acd9b18c8bf5a20858697a5..fa1952599a983ddecd9d9b2827d8e9123a482196 100644 (file)
@@ -64,7 +64,7 @@ function civicrm_api3_membership_delete($params) {
       return civicrm_api3_create_success(TRUE, $params);
     }
     else {
-      throw new CiviCRM_API3_Exception('Could not delete membership');
+      throw new API_Exception(ts('Could not delete membership'));
     }
   }
   else {