Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2300 Rev 2308
Line 711... Line 711...
711
	}
711
	}
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
-
 
716
		if(! $obs['nom_ret_nn']) {
-
 
717
			$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL));
-
 
718
			return;
-
 
719
		}
715
		// d'être appelée
720
 
716
		
721
		if(! self::referenceTableExiste()) {
717
		if(!$obs['nom_ret_nn'] || !self::referenceTableExiste()) {
722
			$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL));
718
			$ligne = array_merge($ligne, array_fill_keys(self::$baseflor_col, ""));
723
			return;
719
			return;
Line 724... Line 720...
724
		}
720
		}
725
 
721
 
Line 730... Line 726...
730
		// @ car getBaseflor[] n'est peut-être pas encore initialisé
726
		// @ car getBaseflor[] n'est peut-être pas encore initialisé
731
		if(@array_key_exists($cache_id, self::$cache['getBaseflor'])) {
727
		if(@array_key_exists($cache_id, self::$cache['getBaseflor'])) {
732
			$ligne = array_merge($ligne, self::$cache['getBaseflor'][$cache_id]);
728
			$ligne = array_merge($ligne, self::$cache['getBaseflor'][$cache_id]);
733
			return;
729
			return;
734
		} else {
730
		} else {
735
			$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL));
731
			$ligne = array_merge($ligne, array_fill_keys(self::$baseflor_col, ""));
736
			return;
732
			return;
737
		}
733
		}
738
	}
734
	}
Line 739... Line 735...
739
 
735