[ticket/10897] Remove unnecessary string casting.

PHPBB3-10897
This commit is contained in:
Andreas Fischer 2012-11-09 12:12:27 +01:00
parent 07e7c475d5
commit b2183c9b70

View file

@ -2152,8 +2152,8 @@ function change_database_data(&$no_updates, $version)
if ($is_user) if ($is_user)
{ {
$sql = 'UPDATE ' . BOTS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', array( $sql = 'UPDATE ' . BOTS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', array(
'bot_agent' => (string) $bot_agent, 'bot_agent' => $bot_agent,
'bot_ip' => (string) $bot_ip, 'bot_ip' => $bot_ip,
)) . " WHERE bot_name = '" . $db->sql_escape($bot_name) . "'"; )) . " WHERE bot_name = '" . $db->sql_escape($bot_name) . "'";
_sql($sql, $errored, $error_ary); _sql($sql, $errored, $error_ary);