X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FNote.php;h=244ca4c25a6a1439de8bdd673326ec69b696e767;hb=93b640960bbdf2eb4b80089ab3fb2f4cf2f94fb8;hp=d30ae5bfaad89cf8e3fe74518f07b21b2289249c;hpb=144dacf19067161923f93ddd7178bb938b04c969;p=civicrm-core.git diff --git a/CRM/Core/BAO/Note.php b/CRM/Core/BAO/Note.php index d30ae5bfaa..244ca4c25a 100644 --- a/CRM/Core/BAO/Note.php +++ b/CRM/Core/BAO/Note.php @@ -293,7 +293,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { * @param bool $showStatus * Do we need to set status or not. * - * @return int|NULL + * @return int|null * no of deleted notes on success, null otherwise */ public static function del($id, $showStatus = TRUE) { @@ -315,12 +315,10 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { $childNote = new CRM_Core_DAO_Note(); $childNote->id = $childId; $childNote->delete(); - $childNote->free(); $recent[] = $childId; } $return = $note->delete(); - $note->free(); if ($showStatus) { CRM_Core_Session::setStatus($status, ts('Deleted'), 'success'); }