Hope this will fix a bug
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 8 Oct 2007 18:25:32 +0000 (20:25 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 8 Oct 2007 18:25:32 +0000 (20:25 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetgrp.php

index 06e1cef..114b220 100644 (file)
@@ -755,7 +755,7 @@ class XnetGrpModule extends PLModule
                                     FROM auth_user_md5
                                    WHERE $where");
         }
-        if ($res->total() < 30) {
+        if ($res && $res->total() < 30) {
             $page->assign("choix", $res);
         }
     }