mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 06:38:43 +01:00
PGSQL is pretty strict about datatypes
git-svn-id: file:///svn/phpbb/trunk@7555 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6d0c0bf0b3
commit
99815fbb77
@ -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', '', ''),
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user