Index: notifications_team.module
===================================================================
--- notifications_team.module	(revision 18)
+++ notifications_team.module	(working copy)
@@ -284,7 +284,7 @@
     
   }
   // Add permission/role condition. If no roles (only authenticated user, add an uid condition)
-  if ($rids) {
+  if (!empty($rids)) {
     $join[] = "LEFT JOIN {users_roles} r ON u.uid = r.uid";
     $where[] = "(r.rid IN (" . db_placeholders($rids) . ') OR u.uid = 1)';
     $args = array_merge($args, $rids);
