Fixes grad year fetch in profile groups edition.
authorStéphane Jacob <sj@m4x.org>
Tue, 27 Jul 2010 13:33:14 +0000 (15:33 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 27 Jul 2010 13:33:14 +0000 (15:33 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/groups.inc.php

index 0d2df30..f5e2941 100644 (file)
@@ -122,7 +122,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"));
-        $page->assign('old', (int) date('Y') >= $page->profile->grad_year);
+        $page->assign('old', (int) date('Y') >= $this->profile->grad_year);
     }
 }