function check() { $clear_all = KTUtil::arrayGet($_REQUEST, 'clearAll'); if ($clear_all) { return true; } $notification_id = KTUtil::arrayGet($_REQUEST, 'id', null); $oKTNotification =& KTNotification::get($notification_id); if (PEAR::isError($oKTNotification)) { $this->addInfoMessage(_kt('Cannot find the notification you requested. Notification may already have been cleared.')); exit(redirect(generateControllerLink('dashboard'))); } $this->notification =& $oKTNotification; return true; }