Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 551 Rev 628
Line 97... Line 97...
97
			$images_doublons_id = array();
97
			$images_doublons_id = array();
98
			$md5 = array();
98
			$md5 = array();
99
			foreach ($images as $img) {
99
			foreach ($images as $img) {
100
				if (!isset($md5[$img['ci_md5']])) {
100
				if (!isset($md5[$img['ci_md5']])) {
101
					$md5[$img['ci_md5']] = array(
101
					$md5[$img['ci_md5']] = array(
102
						'url' => $this->getUrlImage($img['ci_id_image'], 'S'), 
102
						'url' => $this->getUrlImage($img['ci_id_image'], 'CXS'), 
103
						'obs_ordre' => array(),
103
						'obs_ordre' => array(),
104
						'img_ordre' => $img['ci_ordre'],
104
						'img_ordre' => $img['ci_ordre'],
105
						'img_id' => $img['ci_id_image']);
105
						'img_id' => $img['ci_id_image']);
106
				} else {
106
				} else {
107
					if (!isset($doublons[$img['ci_md5']])) {
107
					if (!isset($doublons[$img['ci_md5']])) {
108
						$id_img = $md5[$img['ci_md5']]['img_id'];
108
						$id_img = $md5[$img['ci_md5']]['img_id'];
109
						$doublons[$img['ci_md5']][$id_img] = $md5[$img['ci_md5']];
109
						$doublons[$img['ci_md5']][$id_img] = $md5[$img['ci_md5']];
110
						$images_doublons_id[] = $this->bdd->quote($id_img);
110
						$images_doublons_id[] = $this->bdd->quote($id_img);
111
					}
111
					}
112
					$doublons[$img['ci_md5']][$img['ci_id_image']] = array(
112
					$doublons[$img['ci_md5']][$img['ci_id_image']] = array(
113
							'url' => $this->getUrlImage($img['ci_id_image'], 'S'), 
113
							'url' => $this->getUrlImage($img['ci_id_image'], 'CXS'), 
114
							'obs_ordre' => array(),
114
							'obs_ordre' => array(),
115
							'img_ordre' => $img['ci_ordre'],
115
							'img_ordre' => $img['ci_ordre'],
116
							'img_id' => $img['ci_id_image']);
116
							'img_id' => $img['ci_id_image']);
117
					$images_doublons_id[] = $this->bdd->quote($img['ci_id_image']);
117
					$images_doublons_id[] = $this->bdd->quote($img['ci_id_image']);
118
				}
118
				}