/** * Overriden delete function to update recipient count if removing recipient from the list * @param integer $idnewslog ID */ public function delete($idnewslog) { $idnewslog = Contenido_Security::toInteger($idnewslog); $oLog = new cNewsletterLog($idnewslog); $iIDNewsJob = $oLog->get("idnewsjob"); unset($oLog); $oJob = new cNewsletterJob($iIDNewsJob); $oJob->set("rcpcount", $oJob->get("rcpcount") - 1); $oJob->store(); unset($oJob); parent::delete($idnewslog); }