File renamed to naming convention, ext-repair continued:
[mailer.git] / inc / modules / admin / what-list_user.php
index b330b66..0c86176 100644 (file)
@@ -188,20 +188,20 @@ LIMIT 1",
                        case 'norefs': // Users w/o refs
                                if (!empty($whereStatement)) {
                                        // Add AND statement
-                                       $whereStatement .= " AND `refid`=0";
+                                       $whereStatement .= ' AND (`refid`=0 OR `refid` IS NULL)';
                                } else {
                                        // Add WHERE statement
-                                       $whereStatement = " WHERE `refid`=0";
+                                       $whereStatement = ' WHERE (`refid`=0 OR `refid` IS NULL)';
                                }
                                break;
 
                        case 'random_refid': // Users available for random referal id
                                if (!empty($whereStatement)) {
                                        // Add AND statement
-                                       $whereStatement .= " AND `rand_confirmed` >= {?user_min_confirmed?}";
+                                       $whereStatement .= ' AND `rand_confirmed` >= {?user_min_confirmed?}';
                                } else {
                                        // Add WHERE statement
-                                       $whereStatement = " WHERE `rand_confirmed` >= {?user_min_confirmed?}";
+                                       $whereStatement = ' WHERE `rand_confirmed` >= {?user_min_confirmed?}';
                                }
                                break;