aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-07-27 17:33:27 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-07-27 17:33:27 +0000
commitacf0c0ddebf13b6075b6dac81c7675dd04d4a692 (patch)
treeb2452341efa35b710560ea75e70401b0f5c474c2 /phpBB/includes/functions_admin.php
parent92c25a3e6c99bb071710b2f5dc5939262924233c (diff)
downloadforums-acf0c0ddebf13b6075b6dac81c7675dd04d4a692.tar
forums-acf0c0ddebf13b6075b6dac81c7675dd04d4a692.tar.gz
forums-acf0c0ddebf13b6075b6dac81c7675dd04d4a692.tar.bz2
forums-acf0c0ddebf13b6075b6dac81c7675dd04d4a692.tar.xz
forums-acf0c0ddebf13b6075b6dac81c7675dd04d4a692.zip
err, forgot to commit
git-svn-id: file:///svn/phpbb/trunk@7961 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 64358cbdf4..7074f21f25 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1079,8 +1079,8 @@ function update_posted_info(&$topic_ids)
foreach ($topic_row as $topic_id)
{
$sql_ary[] = array(
- 'user_id' => $user_id,
- 'topic_id' => $topic_id,
+ 'user_id' => (int) $user_id,
+ 'topic_id' => (int) $topic_id,
'topic_posted' => 1,
);
}
@@ -2244,9 +2244,9 @@ function cache_moderators()
foreach ($forum_id_ary as $forum_id => $auth_ary)
{
$sql_ary[] = array(
- 'forum_id' => $forum_id,
- 'user_id' => $user_id,
- 'username' => $usernames_ary[$user_id],
+ 'forum_id' => (int) $forum_id,
+ 'user_id' => (int) $user_id,
+ 'username' => (string) $usernames_ary[$user_id],
'group_id' => 0,
'group_name' => ''
);
@@ -2307,11 +2307,11 @@ function cache_moderators()
}
$sql_ary[] = array(
- 'forum_id' => $forum_id,
+ 'forum_id' => (int) $forum_id,
'user_id' => 0,
'username' => '',
- 'group_id' => $group_id,
- 'group_name' => $groupnames_ary[$group_id]
+ 'group_id' => (int) $group_id,
+ 'group_name' => (string) $groupnames_ary[$group_id]
);
}
}