public function delRegistered(PlPage $page, Profile $profile) { XDB::execute('DELETE FROM contacts WHERE uid = {?} AND contact = {?}', S::i('uid'), $profile->id()); if (XDB::affectedRows() > 0) { S::user()->invalidWatchCache(); Platal::session()->updateNbNotifs(); $page->trigSuccess("Contact retiré !"); } }