$dsql = "SELECT * FROM ".$xoopsDB->prefix('gallery_cat')." WHERE uid=".$_GET['uid']." AND pass!='' ";
$dresult = $xoopsDB->query($dsql);
while ($dretour = $xoopsDB->fetcharray($dresult)) {
}
if ( (isset($_GET['titre'])) && ($_GET['titre'] == $refused) ) {
$xoopsTpl->assign('lang_album_error', _MD_GALLERY_ALBERROR);
} else {
$bdd = "SELECT * FROM ".$xoopsDB->prefix('gallery_photo')." WHERE uid=".$_GET['uid']." AND cat='".$_GET['titre']."'";
$result_bdd = $xoopsDB->query($bdd);
while ($retour_bdd = $xoopsDB->fetcharray($result_bdd)) {
}
};