aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification/type/post.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-03-28 22:14:01 +0100
committerAndreas Fischer <bantu@phpbb.com>2014-03-28 22:14:53 +0100
commitad2ed01623daeea6abdf24b3f6710cbc10dcad9c (patch)
treed63ef4b0190c2eff7888feda182f9fa952bfb5fe /phpBB/phpbb/notification/type/post.php
parentc4892448950aa7eb1bba5bd4506a747eee2631f2 (diff)
downloadforums-ad2ed01623daeea6abdf24b3f6710cbc10dcad9c.tar
forums-ad2ed01623daeea6abdf24b3f6710cbc10dcad9c.tar.gz
forums-ad2ed01623daeea6abdf24b3f6710cbc10dcad9c.tar.bz2
forums-ad2ed01623daeea6abdf24b3f6710cbc10dcad9c.tar.xz
forums-ad2ed01623daeea6abdf24b3f6710cbc10dcad9c.zip
[ticket/12317] Cast string to int to refix DBMSes not using int for integers.
PHPBB3-12317
Diffstat (limited to 'phpBB/phpbb/notification/type/post.php')
-rw-r--r--phpBB/phpbb/notification/type/post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/notification/type/post.php b/phpBB/phpbb/notification/type/post.php
index bc42c4422b..b2ad8ff33d 100644
--- a/phpBB/phpbb/notification/type/post.php
+++ b/phpBB/phpbb/notification/type/post.php
@@ -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);