Merge pull request #13979 from totten/master-phpcbf-2
[civicrm-core.git] / api / v3 / SavedSearch.php
index e32c258e35282961af64d811031e582956f5c0e4..4c6b7a2fd4ad46accce437f02d6d154fd75cc822 100644 (file)
@@ -2,7 +2,7 @@
 
 /*
   +--------------------------------------------------------------------+
-  | CiviCRM version 4.7                                                |
+  | CiviCRM version 5                                                  |
   +--------------------------------------------------------------------+
   | Copyright Chirojeugd-Vlaanderen vzw 2015                           |
   +--------------------------------------------------------------------+
@@ -43,7 +43,7 @@
  * @access public
  */
 function civicrm_api3_saved_search_create($params) {
-  civicrm_api3_verify_one_mandatory($params, NULL, array('form_values', 'where_clause'));
+  civicrm_api3_verify_one_mandatory($params, NULL, ['form_values', 'where_clause']);
   // The create function of the dao expects a 'formValues' that is
   // not serialized. The get function returns form_values, that is
   // serialized.
@@ -60,7 +60,7 @@ function civicrm_api3_saved_search_create($params) {
     }
   }
 
-  $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+  $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'SavedSearch');
   _civicrm_api3_saved_search_result_cleanup($result);
   return $result;
 }