1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-11 08:53:05 +02:00

[feature/system-cron] Use intval() to convert to int.

PHPBB3-9596
This commit is contained in:
Oleg Pudeyev
2010-05-09 16:58:53 -04:00
parent ccf5902c50
commit f345662b21

View File

@ -121,7 +121,7 @@ class cron_task_core_prune_forum extends cron_task_base implements parametrized_
$this->forum_data = null;
if (isset($params['f']))
{
$forum_id = int($params['f']);
$forum_id = intval($params['f']);
$sql = 'SELECT forum_id, prune_next, enable_prune, prune_days, prune_viewed, forum_flags, prune_freq
FROM ' . FORUMS_TABLE . "