public function act_delete_information() { if (!isset($_POST['informations']) || isset($_POST['no'])) { set_redirect_header('events', 'src_list'); return; } $this->del_confirm = true; if (isset($_POST['yes'])) { if (isset($_POST['information'])) { array_push($_POST['informations'], $_POST['information']); } //if multiplt events are selected if (is_array($_POST['informations'])) { foreach ($_POST['informations'] as $information) { $i = new Information(); $i->DeleteFromRecordNumber($information); } } set_redirect_header('events', 'src_list'); return; } $this->sources = Browse::getSourceListArray($_POST['informations']); }