fix error to throw Exception
authorunknown <eileen@fuzion.co.nz>
Fri, 13 Sep 2013 01:29:08 +0000 (13:29 +1200)
committerunknown <eileen@fuzion.co.nz>
Fri, 13 Sep 2013 01:29:08 +0000 (13:29 +1200)
api/v3/Profile.php

index 2f87ce352664b1da9846230139c1a16b0cb583f2..aefd89c317ebf18f2be6a63c25e77fcc6b1a79bf 100644 (file)
@@ -346,7 +346,7 @@ function civicrm_api3_profile_apply($params) {
   );
 
   if (empty($data)) {
-    return civicrm_api3_create_error('Enable to format profile parameters.');
+    throw new API_Exception('Enable to format profile parameters.');
   }
 
   return civicrm_api3_create_success($data);