Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2465 Rev 2468
Line 45... Line 45...
45
 
45
 
46
		$values = array();
46
		$values = array();
47
		foreach ($ids_images_filtrees as $id_img) {
47
		foreach ($ids_images_filtrees as $id_img) {
48
			foreach ($infos_observations_filtrees as $infos_obs) {
48
			foreach ($infos_observations_filtrees as $infos_obs) {
49
				$id_obs = $infos_obs['id_observation'];
49
				$id_obs = $infos_obs['id_observation'];
50
				$dateTransmission = ($infos_obs['date_transmission'] != '') ? $infos_obs['date_transmission'] : 'NULL' ;
50
				$dateTransmission = ($infos_obs['date_transmission'] != '') ? Cel::db()->proteger($infos_obs['date_transmission']) : 'NULL' ;
51
				$transmission = $infos_obs['transmission'];
51
				$transmission = $infos_obs['transmission'];
52
				$values[] = "($id_img, $id_obs, NOW(), $dateTransmission, $transmission)";
52
				$values[] = "($id_img, $id_obs, NOW(), $dateTransmission, $transmission)";
53
			}
53
			}
54
		}
54
		}