fix last commit

This commit is contained in:
Michael Foster 2013-08-04 04:49:21 -04:00
parent 0890557ebb
commit 6409ac6163

View File

@ -690,7 +690,7 @@ function purge_bans() {
global $config;
if ($config['cache']['enabled'] && $last_time_purged = cache::get('purged_bans_last')) {
if (time() - $last_time_purged < 60 * 30)
if (time() - $last_time_purged < $config['purge_bans'] )
return;
}