Si non précisé et que le lieu a des liens, il n'est pas supprimé
function($id, $with_links = false)
{
if ($this->get_info($id)) {
$rels = $this->relations($id);
if ($with_links || empty($rels)) {
foreach ($rels as $k => $r){
$this->db->delete('apst_liens', ['id' => $k]);
$adh = new \apst\adherent($this->db, $r);
$adh->wps_delete_contact($id);
}
return $this->db->delete('bbn_people', ['id' => $id]);
}
}
return false;
}