Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2302 Rev 2303
Line 712... Line 712...
712
 
712
 
713
	static function baseflor_ligne($obs, &$ligne) {
713
	static function baseflor_ligne($obs, &$ligne) {
714
		// Attention la fonction suppose que l'on ait fait appel à baseflor_preload avant 
714
		// Attention la fonction suppose que l'on ait fait appel à baseflor_preload avant 
715
		// d'être appelée
715
		// d'être appelée
716
		if(! $obs['nom_ret_nn']) {
716
		if(! $obs['nom_ret_nn']) {
717
			$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL));
717
			$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), ""));
718
			return;
718
			return;
Line 719... Line 719...
719
		}
719
		}
720
 
720
 
721
		if(! self::referenceTableExiste()) {
721
		if(! self::referenceTableExiste()) {
722
			$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL));
722
			$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), ""));
Line 723... Line 723...
723
			return;
723
			return;
724
		}
724
		}
Line 730... Line 730...
730
		// @ car getBaseflor[] n'est peut-être pas encore initialisé
730
		// @ car getBaseflor[] n'est peut-être pas encore initialisé
731
		if(@array_key_exists($cache_id, self::$cache['getBaseflor'])) {
731
		if(@array_key_exists($cache_id, self::$cache['getBaseflor'])) {
732
			$ligne = array_merge($ligne, self::$cache['getBaseflor'][$cache_id]);
732
			$ligne = array_merge($ligne, self::$cache['getBaseflor'][$cache_id]);
733
			return;
733
			return;
734
		} else {
734
		} else {
735
			$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL));
735
			$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), ""));
736
			return;
736
			return;
737
		}
737
		}
738
	}
738
	}
Line 739... Line 739...
739
 
739