aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2009-07-27 10:24:42 +0000
committerAndreas Fischer <bantu@phpbb.com>2009-07-27 10:24:42 +0000
commit3d8d213e8f57a9387b090c858fb831036b264ade (patch)
tree9d4ad376668cddf85ec21499bad6f6c2b54f604a /phpBB
parent0cb565dc0c49edb871393cf4ec15fa193ce7fccb (diff)
downloadforums-3d8d213e8f57a9387b090c858fb831036b264ade.tar
forums-3d8d213e8f57a9387b090c858fb831036b264ade.tar.gz
forums-3d8d213e8f57a9387b090c858fb831036b264ade.tar.bz2
forums-3d8d213e8f57a9387b090c858fb831036b264ade.tar.xz
forums-3d8d213e8f57a9387b090c858fb831036b264ade.zip
Cast some array values and properties to integer.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9867 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/feed.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php
index ffce19746d..5f19d0161b 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -604,7 +604,7 @@ class phpbb_feed
while ($row = $db->sql_fetchrow($result))
{
- $post_ids[] = $row['topic_last_post_id'];
+ $post_ids[] = (int) $row['topic_last_post_id'];
}
$db->sql_freeresult($result);
}
@@ -630,7 +630,7 @@ class phpbb_feed
$forum_ids = array();
while ($row = $db->sql_fetchrow($result))
{
- $forum_ids[] = $row['forum_id'];
+ $forum_ids[] = (int) $row['forum_id'];
}
$db->sql_freeresult($result);
@@ -646,7 +646,7 @@ class phpbb_feed
while ($row = $db->sql_fetchrow($result))
{
- $post_ids[] = $row['topic_last_post_id'];
+ $post_ids[] = (int) $row['topic_last_post_id'];
}
$db->sql_freeresult($result);
}
@@ -676,7 +676,7 @@ class phpbb_feed
while ($row = $db->sql_fetchrow($result))
{
- $post_ids[] = $row['post_id'];
+ $post_ids[] = (int) $row['post_id'];
}
$db->sql_freeresult($result);
}
@@ -870,7 +870,7 @@ class phpbb_feed_news extends phpbb_feed
$this->set('enable_smilies', 'enable_smilies');
$this->set('enable_magic_url', 'enable_magic_url');
- $this->num_items = $config['feed_overall_forums_limit'];
+ $this->num_items = (int) $config['feed_overall_forums_limit'];
}
function open()
@@ -949,7 +949,7 @@ class phpbb_feed_topics extends phpbb_feed
$this->set('enable_smilies', 'enable_smilies');
$this->set('enable_magic_url', 'enable_magic_url');
- $this->num_items = $config['feed_overall_topics_limit'];
+ $this->num_items = (int) $config['feed_overall_topics_limit'];
}
function open()
@@ -981,7 +981,7 @@ class phpbb_feed_topics extends phpbb_feed
while ($row = $db->sql_fetchrow($result))
{
- $post_ids[] = $row['topic_first_post_id'];
+ $post_ids[] = (int) $row['topic_first_post_id'];
}
$db->sql_freeresult($result);