651,7 → 651,7 |
} |
|
static function getNomCommun_v4($obs) { |
// Attention la fonction suppose que l'on ait fait appel à getNomCommun_preload avant |
// Attention la fonction suppose que l'on ait fait appel à getNomCommun_preload avant |
// d'être appelée |
if(! $obs['nt']) return NULL; |
if(! self::referenceTableExiste()) return NULL; |
699,8 → 699,8 |
// Des fois les synonymes ont des valeurs pour baseflor et pas le nom retenu et vice versa |
// on les fusionne pour avoir le maximum d'infos, en attendant de repenser la table référence |
if(isset(self::$cache['getBaseflor'][$v['referentiel'] . '-' . $v['num_nom_retenu']])) { |
$orig = array_filter(self::$cache['getBaseflor'][$v['referentiel'] . '-' . $v['num_nom_retenu']], 'strlen'); |
$data = array_filter($data , 'strlen'); |
$orig = array_filter(self::$cache['getBaseflor'][$v['referentiel'] . '-' . $v['num_nom_retenu']], 'strlen'); |
$data = array_filter($data , 'strlen'); |
$data = array_merge($orig, $data); |
} |
|
714,12 → 714,12 |
// Attention la fonction suppose que l'on ait fait appel à baseflor_preload avant |
// d'être appelée |
if(! $obs['nom_ret_nn']) { |
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), NULL)); |
$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL)); |
return; |
} |
|
if(! self::referenceTableExiste()) { |
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), NULL)); |
$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL)); |
return; |
} |
|
732,7 → 732,7 |
$ligne = array_merge($ligne, self::$cache['getBaseflor'][$cache_id]); |
return; |
} else { |
$ligne = array_merge($ligne, array_fill(0, count(self::$baseflor_col), NULL)); |
$ligne = array_merge($ligne, array_fill("", count(self::$baseflor_col), NULL)); |
return; |
} |
} |