Subversion Repositories Applications.projet

Rev

Rev 299 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 299 Rev 397
Line 90... Line 90...
90
     * @return void
90
     * @return void
91
     * @access public
91
     * @access public
92
     */
92
     */
93
    function getLabelType( $id_type)
93
    function getLabelType( $id_type)
94
    {
94
    {
95
        $requete = 'select pt_label_theme from projet_theme where pt_id_theme='.$id_type ;
95
        $requete = 'select pt_label_theme from projet_theme where pt_id_theme='.$this->_db->escapeSimple($id_type) ;
96
        $resultat =  $this->_db->getOne($requete) ;
96
        $resultat =  $this->_db->getOne($requete) ;
97
        if (DB::isError($resultat)) {
97
        if (DB::isError($resultat)) {
98
        	echo $resultat->getMessage() ;
98
        	echo $resultat->getMessage() ;
99
        }
99
        }
100
        return $resultat ;
100
        return $resultat ;
101
    }
101
    }
102
}
102
}
103
?>
103
?>
104
104