24,7 → 24,7 |
$info = array(); |
|
// Pré traitement des paramêtres |
$p = $this->traiterParametresUrl(array('id_publication', 'id_projet', 'recherche'), $param); |
$p = $this->traiterParametresUrl(array('id_publication', 'recherche'), $param); |
|
// Construction de la requête |
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' cp.*, cmhl.*, cs_nom '. |
32,7 → 32,6 |
' LEFT JOIN coel_meta_historique_ligne AS cmhl ON (cpu_ce_meta = cmhl_id_historique_ligne) '. |
' LEFT JOIN coel_structure ON (cpu_ce_truk_editeur = cs_id_structure) '. |
((count($p) != 0) ? 'WHERE ' : ''). |
(isset($p['id_projet']) ? "AND cpu_ce_projet = {$p['id_projet']} " : ''). |
(isset($p['id_publication']) ? "AND cpu_id_publication = {$p['id_publication']} " : ''). |
(isset($p['recherche']) ? $this->construireWhereRecherche($p['recherche']) : ''). |
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'cpu_id_publication ASC').' '; |