Subversion Repositories eFlore/Applications.cel

Rev

Rev 3722 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3722 Rev 3723
Line 173... Line 173...
173
	 */
173
	 */
174
	public function consulterProjetChampsEtendus($projet = "", $langue = 'fr') {
174
	public function consulterProjetChampsEtendus($projet = "", $langue = 'fr') {
175
	    if ($projet !== "") {
175
	    if ($projet !== "") {
176
	        $requeteProjetType = "SELECT type FROM `project_settings` WHERE `project` = '".$projet."';";
176
	        $requeteProjetType = "SELECT type FROM `project_settings` WHERE `project` = '".$projet."';";
177
	        $resultat = Cel::db()->executerRequete($requeteProjetType);
177
	        $resultat = Cel::db()->executerRequete($requeteProjetType);
178
	        if ($resultat == array() || $resultat[0]['type'] = "") {
178
	        if ($resultat == array() || $resultat[0]['type'] == "") {
179
	            $requeteProjet = " AND ce.project = '".$projet."' AND cet.project = '".$projet."' ";
179
	            $requeteProjet = " AND ce.project = '".$projet."' AND cet.project = '".$projet."' ";
180
	        } else {
180
	        } else {
181
	            $type = $resultat[0]['type'];
181
	            $type = $resultat[0]['type'];
182
	            $requeteProjet = " AND ce.project = '".$type."' AND cet.project = '".$type."' ";
182
	            $requeteProjet = " AND ce.project = '".$type."' AND cet.project = '".$type."' ";
183
	        }
183
	        }