Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2309 → Rev 2308

/branches/v2.4-fourche/jrest/lib/FormateurGroupeColonne.php
713,12 → 713,15
static function baseflor_ligne($obs, &$ligne) {
// Attention la fonction suppose que l'on ait fait appel à baseflor_preload avant
// d'être appelée
if(!$obs['nom_ret_nn'] || !self::referenceTableExiste()) {
$ligne = array_merge($ligne, array_fill_keys(self::$baseflor_col, ""));
$ligne = array_merge($ligne, self::$baseflor_col));
if(! $obs['nom_ret_nn']) {
return;
}
 
if(! self::referenceTableExiste()) {
return;
}
 
list($referentiel) = explode(':', strtolower($obs['nom_referentiel']));
$cache_id = $referentiel . '-' . $obs['nom_ret_nn'];
 
728,7 → 731,7
$ligne = array_merge($ligne, self::$cache['getBaseflor'][$cache_id]);
return;
} else {
$ligne = array_merge($ligne, array_fill_keys(self::$baseflor_col, ""));
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), " "));
return;
}
}