Fix networking display on profiles
[platal.git] / modules / profile / groups.inc.php
index 8aadbdd..62489ed 100644 (file)
@@ -113,8 +113,7 @@ class ProfileSettingGroups extends ProfilePage
                                                     WHERE  a.inscriptible != 0
                                                            AND (a.cat = 'GroupesX' OR a.cat = 'Institutions')
                                                  ORDER BY  a.cat, a.dom, a.nom"));
-        # XXX: FIXME: promo_sortie
-        $page->assign('old', (int)date('Y') >= S::i('promo_sortie'));
+        $page->assign('old', (int) date('Y') >= $page->profile->grad_year);
     }
 }