setDomain(1); $acces_m = $dom_1->getRights($PMBuserid,$serial_id,8); } if ($acces_m==0) { error_message('', htmlentities($dom_1->getComment('mod_seri_error'), ENT_QUOTES, $charset), 1, ''); } else { print "
".$msg['catalog_notices_suppression']."
"; $requete = "select 1 from pret, exemplaires, bulletins, notices where notice_id='$serial_id' and expl_notice=0 "; $requete .="and pret_idexpl=expl_id and expl_bulletin=bulletin_id and bulletin_notice=notice_id"; $result=@pmb_mysql_query($requete); if (pmb_mysql_num_rows($result)) { // gestion erreur pret en cours error_message($msg[416], $msg['impossible_perio_del_pret'], 1, serial::get_permalink($serial_id)); } else { //suppression du périodique $serial = new serial($serial_id); if ($pmb_archive_warehouse) { serial::save_to_agnostic_warehouse(array(0=>$serial_id),$pmb_archive_warehouse); } $serial->serial_delete(); $retour = "./catalog.php?categ=serials"; print "
"; } } ?>