public function act_delete_biographic() { if (!isset($_POST['biographics']) || isset($_POST['no'])) { set_redirect_header('person', 'biography_list'); return; } $this->del_confirm = true; if (isset($_POST['yes'])) { if (isset($_POST['biographic'])) { array_push($_POST['biographics'], $_POST['biographic']); } //if multiplt events are selected if (is_array($_POST['biographics'])) { foreach ($_POST['biographics'] as $biographic) { $b = new BiographicDetail(); $b->DeleteFromRecordNumber($biographic); } } set_redirect_header('person', 'biography_list'); return; } $this->biographics = Browse::getBiographyListArray($_POST['biographics']); }