[ticket/12317] Cast string to int to refix DBMSes not using int for integers.

PHPBB3-12317
This commit is contained in:
Andreas Fischer 2014-03-28 22:14:01 +01:00
parent c489244895
commit ad2ed01623
4 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ class bookmark extends \phpbb\notification\type\post
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
$users[] = $row['user_id'];
$users[] = (int) $row['user_id'];
}
$this->db->sql_freeresult($result);

View file

@ -103,7 +103,7 @@ class post extends \phpbb\notification\type\base
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
$users[] = $row['user_id'];
$users[] = (int) $row['user_id'];
}
$this->db->sql_freeresult($result);
@ -115,7 +115,7 @@ class post extends \phpbb\notification\type\base
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
$users[] = $row['user_id'];
$users[] = (int) $row['user_id'];
}
$this->db->sql_freeresult($result);

View file

@ -94,7 +94,7 @@ class quote extends \phpbb\notification\type\post
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
$users[] = $row['user_id'];
$users[] = (int) $row['user_id'];
}
$this->db->sql_freeresult($result);

View file

@ -103,7 +103,7 @@ class topic extends \phpbb\notification\type\base
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
$users[] = $row['user_id'];
$users[] = (int) $row['user_id'];
}
$this->db->sql_freeresult($result);