Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2470 Rev 2477
Line 112... Line 112...
112
	}
112
	}
Line 113... Line 113...
113
 
113
 
114
	private function construireRequeteInsertionImage($informations_image) {
114
	private function construireRequeteInsertionImage($informations_image) {
115
		$infos = array(
115
		$infos = array(
116
			'date_creation' => 'NOW()',
116
			'date_creation' => 'NOW()',
117
			'date_modification' => 'NULL');
117
			'date_modification' => 'NOW()');
118
		foreach ($informations_image as $champ => $valeur) {
118
		foreach ($informations_image as $champ => $valeur) {
119
			$infos[$champ] = is_null($valeur) ? 'NULL' : Cel::db()->proteger($valeur);
119
			$infos[$champ] = is_null($valeur) ? 'NULL' : Cel::db()->proteger($valeur);
120
		}
120
		}
121
		$champs = implode(', ', array_keys($infos));
121
		$champs = implode(', ', array_keys($infos));