X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fgroup.php;h=db1a7efe9202fd521bd4a6937fc0a473e48131b3;hb=aca54585dcd431240a0286adf6007b1ceb5a672a;hp=63ca84b0938867520d22472f4e7e4ba4781d70c1;hpb=020a95fa78dc544b3064739d409026a0056d98f4;p=platal.git diff --git a/classes/group.php b/classes/group.php index 63ca84b..db1a7ef 100644 --- a/classes/group.php +++ b/classes/group.php @@ -116,9 +116,11 @@ class Group } $res = XDB::query('SELECT a.*, d.nom AS domnom, FIND_IN_SET(\'wiki_desc\', a.flags) AS wiki_desc, - FIND_IN_SET(\'notif_unsub\', a.flags) AS notif_unsub + FIND_IN_SET(\'notif_unsub\', a.flags) AS notif_unsub, + (nls.id IS NOT NULL) AS has_nl FROM groups AS a LEFT JOIN group_dom AS d ON d.id = a.dom + LEFT JOIN newsletters AS nls ON (nls.group_id = a.id) WHERE ' . $where); if ($res->numRows() != 1) { if ($can_be_shortname && (is_int($id) || ctype_digit($id))) {