/** * Remove a record of payment session from the database. * * @param stdClass $session */ public function closePaymentSession($session) { if (is_object($session) and (int) $session->id > 0) { $intention = new Crowdfunding\Intention(JFactory::getDbo()); $intention->setId($session->id); $intention->delete(); } }
/** * Remove a record of payment session from the database. * * @param object $session */ public function closePaymentSession($session) { if (!empty($session->id)) { $intention = new Crowdfunding\Intention(JFactory::getDbo()); $intention->setId($session->id); $intention->delete(); } }