Forráskód Böngészése

If a member has not yet do its first login maintenance could prune him even if it's just two seconds it is registered [msg 3379411]

Signed-off-by: emanuele <[email protected]>
emanuele 12 éve
szülő
commit
b5366b5e40
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Sources/ManageMaintenance.php

+ 1 - 1
Sources/ManageMaintenance.php

@@ -1807,7 +1807,7 @@ function MaintainPurgeInactiveMembers()
 			$where_vars['is_activated'] = 0;
 		}
 		else
-			$where = 'mem.last_login < {int:time_limit}';
+			$where = 'mem.last_login < {int:time_limit} AND (mem.last_login != 0 OR mem.date_registered < {int:time_limit})';
 
 		// Need to get *all* groups then work out which (if any) we avoid.
 		$request = $smcFunc['db_query']('', '