Fix registration of non-X on lists
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 29 Apr 2007 15:37:38 +0000 (15:37 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 29 Apr 2007 15:37:38 +0000 (15:37 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.14@1756 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/lists.php

index 7111516..df255e1 100644 (file)
@@ -506,7 +506,7 @@ class ListsModule extends PLModule
         global $list_unregistered;
 
         $users = get_not_registered_user($login, true);
-        if ($users->total()) {
+        if ($users && $users->total()) {
             if (!isset($list_unregistered)) {
                 $list_unregistered = array();
             }