Commit 1ae63736 authored by Feu's avatar Feu

optimisations SQL

parent 24d9043a
......@@ -222,7 +222,7 @@ class forum extends basedb
$grps = $user->get_groups_csv();
$query .= "AND ((droits_acces_forum & 0x1) OR " .
"((droits_acces_forum & 0x10) AND id_groupe IN ($grps)) OR " .
"(id_groupe_admin IN ($grps)) ";
"(id_groupe_admin IN ($grps))) ";
}
$query .= "ORDER BY frm_forum.ordre_forum";
......
......@@ -361,8 +361,7 @@ class sujet extends stdentity
$order = 'ASC';
$query = "SELECT frm_message.*, ".
"IF(
utilisateurs.utbm_utl = '1',
"COALESCE(
utl_etu_utbm.surnom_utbm,
CONCAT(utilisateurs.prenom_utl,' ',utilisateurs.nom_utl)
) AS alias_utl, " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment