Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 694 Rev 787
Line 223... Line 223...
223
		}
223
		}
224
		return $comment;
224
		return $comment;
225
	}
225
	}
Line 226... Line 226...
226
	
226
	
-
 
227
	public function formerDate($inventory) {
227
	public function formerDate($inventory) {
228
		$date = NULL;
228
		if ($inventory['collection_code'] == 'sophy') {
229
		if ($inventory['collection_code'] == 'sophy') {
229
			$date = ', en '.$inventory['date_observation'];
230
			$date = ', en '.$inventory['date_observation'];
-
 
231
		}
230
		} else {
232
		elseif($inventory['date_observation']) {
231
			list($year, $month, $day) = explode ('-',$inventory['date_observation']);
233
			list($year, $month, $day) = explode ('-',$inventory['date_observation']);
232
			list($day) = explode (' ',$day);
234
			list($day) = explode (' ',$day);
233
			if ($month == '00') {
235
			if ($month == '00') {
234
				$date = ', en '.$year;
236
				$date = ', en '.$year;