aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-05-12 17:37:25 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-05-12 17:37:25 +0000
commit99815fbb77ba8661d6c56902159de027bd8bca2f (patch)
treec94d989ed8956e4c603506157286fcdc3a3f4ea4 /phpBB/install
parent6d0c0bf0b38c45c44b5fb5fa22ec0c6e64a55ee8 (diff)
downloadforums-99815fbb77ba8661d6c56902159de027bd8bca2f.tar
forums-99815fbb77ba8661d6c56902159de027bd8bca2f.tar.gz
forums-99815fbb77ba8661d6c56902159de027bd8bca2f.tar.bz2
forums-99815fbb77ba8661d6c56902159de027bd8bca2f.tar.xz
forums-99815fbb77ba8661d6c56902159de027bd8bca2f.zip
PGSQL is pretty strict about datatypes
git-svn-id: file:///svn/phpbb/trunk@7555 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/convertors/convert_phpbb20.php2
-rw-r--r--phpBB/install/convertors/functions_phpbb20.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/install/convertors/convert_phpbb20.php b/phpBB/install/convertors/convert_phpbb20.php
index a1acb32da7..0f17f0e2fe 100644
--- a/phpBB/install/convertors/convert_phpbb20.php
+++ b/phpBB/install/convertors/convert_phpbb20.php
@@ -428,7 +428,7 @@ if (!$get_info)
'target' => BANLIST_TABLE,
array('ban_ip', 'banlist.ban_ip', ''),
- array('ban_userid', '0', ''),
+ array('ban_userid', 0, ''),
array('ban_email', '', ''),
array('ban_reason', '', ''),
array('ban_give_reason', '', ''),
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index 7f51b90787..6788ecd900 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -500,7 +500,7 @@ function phpbb_user_id($user_id)
// having mods installed (a poster id of 0 is not possible in 2.0.x).
// Therefore, we return the user id "as is".
- return $user_id;
+ return (int) $user_id;
}
/* Copy additional table fields from old forum to new forum if user wants this (for Mod compatibility for example)