Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 102 → Rev 103

/trunk/papyrus/bibliotheque/fonctions/pap_menu.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: pap_menu.fonct.php,v 1.2 2004-10-21 18:15:21 jpm Exp $
// CVS : $Id: pap_menu.fonct.php,v 1.3 2004-10-25 14:16:21 jpm Exp $
/**
* Bibliothèque de fonction sur le rendu.
*
33,7 → 33,7
*@author Alexandre GRANIER <alexadandre@tela-botanica.org>
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.2 $ $Date: 2004-10-21 18:15:21 $
*@version $Revision: 1.3 $ $Date: 2004-10-25 14:16:21 $
// +------------------------------------------------------------------------------------------------------+
*/
 
215,17 → 215,10
'WHERE gmr_id_menu_01 = '.$id_menu.' '.
'AND gmr_id_valeur = 1 ';// 1 = avoir "père"
$resultat = $db->query($requete) ;
$resultat = $db->getOne($requete) ;
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : '';
//if ($resultat->numRows() != 1) {
// return false;
//}
$ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT);
$resultat->free();
return $ligne->gmr_id_menu_02;
return $resultat;
}
 
/** Fonction GEN_lireInfoMenu() - Renvoie un objet ou un tableau contenant une ligne de la table gen_menu
377,6 → 370,9
 
/* +--Fin du code ---------------------------------------------------------------------------------------+
* $Log: not supported by cvs2svn $
* Revision 1.2 2004/10/21 18:15:21 jpm
* Ajout de gestion d'erreur aux fonctions.
*
* Revision 1.1 2004/06/15 15:11:37 jpm
* Changement de nom et d'arborescence de Genesia en Papyrus.
*