Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3567 Rev 3568
Line 501... Line 501...
501
				$image['b64'] = (is_array($obs['image_b64']) && isset($obs['image_b64'][$index])) ? $obs['image_b64'][$index] : null;
501
				$image['b64'] = (is_array($obs['image_b64']) && isset($obs['image_b64'][$index])) ? $obs['image_b64'][$index] : null;
502
				$this->debug[] = 'Contient B64 : '.(isset($obs['image_b64']) ? 'oui' : 'non');
502
				$this->debug[] = 'Contient B64 : '.(isset($obs['image_b64']) ? 'oui' : 'non');
503
				$imgAAjouter[] = $image;
503
				$imgAAjouter[] = $image;
504
			}
504
			}
505
		} else {
505
		} else {
-
 
506
			$image = array();
506
			$imgAAjouter['id_utilisateur'] = $this->userId;
507
			$image['id_utilisateur'] = $this->userId;
507
			$imgAAjouter['id_obs'] = $idObs;
508
			$image['id_obs'] = $idObs;
508
			$imgAAjouter['nom'] = $obs['image_nom'];
509
			$image['nom'] = $obs['image_nom'];
509
			$imgAAjouter['b64'] = $obs['image_b64'] ?? null;
510
			$image['b64'] = $obs['image_b64'] ?? null;
510
			$this->debug[] = 'Contient B64 : '.(isset($obs['image_b64']) ? 'oui' : 'non');
511
			$this->debug[] = 'Contient B64 : '.(isset($obs['image_b64']) ? 'oui' : 'non');
-
 
512
			$imgAAjouter[] = $image;
511
		}
513
		}
Line 512... Line 514...
512
 
514
 
513
		return $imgAAjouter;
515
		return $imgAAjouter;
Line 514... Line 516...
514
	}
516
	}
515
 
-
 
516
	protected function stockerImagesEtLierAObs($id_obs, $img) {
-
 
517
		if (isset($img['nom'])) {
-
 
518
			$imgTmp[] = $img;
-
 
519
			unset($img);
-
 
520
			$img = $imgTmp;
-
 
521
		}
517
 
522
 
518
	protected function stockerImagesEtLierAObs($id_obs, $img) {
523
		$img_a_taguer_ids_noms = array();
519
		$img_a_taguer_ids_noms = array();
524
		foreach ($img as $image) {
520
		foreach ($img as $image) {
525
			$image['nom'] = trim(rtrim($image['nom'], "'"), "'");
521
			$image['nom'] = trim(rtrim($image['nom'], "'"), "'");