Merge pull request #11993 from jaapjansma/issue_66
[civicrm-core.git] / api / v3 / Note.php
index 01f835699b97547b48b7ccab7b67e826b25efc44..e8495abb78f20eee7d6cbf3ac9c2585753f28b67 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -44,7 +44,7 @@
  *   API result array
  */
 function civicrm_api3_note_create($params) {
-  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Note');
 }
 
 /**
@@ -112,7 +112,7 @@ function _civicrm_api3_note_get_spec(&$params) {
  * @return array
  *   Nested associative array beginning with direct children of given note.
  */
-function &civicrm_api3_note_tree_get($params) {
+function civicrm_api3_note_tree_get($params) {
   civicrm_api3_verify_mandatory($params, NULL, array('id'));
 
   if (!is_numeric($params['id'])) {