aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2018-10-23 15:18:57 +0200
committerJakub Senko <jakubsenko@gmail.com>2018-10-23 15:18:57 +0200
commit30d1048c8e3b66f3a3144974f9f3fc87054b2be2 (patch)
treeda3df92fd740b76c256c8855301b1b4934648a17
parent101d3b763308efe823d03c09bd0a4a109d19fc26 (diff)
downloadforums-30d1048c8e3b66f3a3144974f9f3fc87054b2be2.tar
forums-30d1048c8e3b66f3a3144974f9f3fc87054b2be2.tar.gz
forums-30d1048c8e3b66f3a3144974f9f3fc87054b2be2.tar.bz2
forums-30d1048c8e3b66f3a3144974f9f3fc87054b2be2.tar.xz
forums-30d1048c8e3b66f3a3144974f9f3fc87054b2be2.zip
[ticket/10432] Fix for SQLite
PHPBB3-10432
-rw-r--r--phpBB/includes/ucp/ucp_remind.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_remind.php b/phpBB/includes/ucp/ucp_remind.php
index 0843d6c249..8cf7ea268d 100644
--- a/phpBB/includes/ucp/ucp_remind.php
+++ b/phpBB/includes/ucp/ucp_remind.php
@@ -80,8 +80,9 @@ class ucp_remind
$sql = $db->sql_build_query('SELECT', $sql_array);
$result = $db->sql_query($sql);
+ $rowset = $db->sql_fetchrowset($result);
- if ($db->sql_affectedrows() > 1)
+ if (count($rowset) > 1)
{
$db->sql_freeresult($result);
@@ -92,7 +93,7 @@ class ucp_remind
}
else
{
- $user_row = $db->sql_fetchrow($result);
+ $user_row = $rowset[0];
$db->sql_freeresult($result);
if (!$user_row)