diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2010-05-09 16:58:53 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:51 -0500 |
| commit | f345662b214bd1ad18c66fcce057dfb73335657e (patch) | |
| tree | c0858630088bc1b97156f796886aeb4d94ee6815 /phpBB | |
| parent | ccf5902c50ecd8fc5307efbb64a20aa19a2652b4 (diff) | |
| download | forums-f345662b214bd1ad18c66fcce057dfb73335657e.tar forums-f345662b214bd1ad18c66fcce057dfb73335657e.tar.gz forums-f345662b214bd1ad18c66fcce057dfb73335657e.tar.bz2 forums-f345662b214bd1ad18c66fcce057dfb73335657e.tar.xz forums-f345662b214bd1ad18c66fcce057dfb73335657e.zip | |
[feature/system-cron] Use intval() to convert to int.
PHPBB3-9596
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/cron/tasks/core/prune_forum.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/cron/tasks/core/prune_forum.php b/phpBB/includes/cron/tasks/core/prune_forum.php index bfc8beb2de..48c502917e 100644 --- a/phpBB/includes/cron/tasks/core/prune_forum.php +++ b/phpBB/includes/cron/tasks/core/prune_forum.php @@ -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 . " |
