diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-09-15 17:22:37 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-09-15 17:22:37 +0200 |
commit | b0d55a69c7de246371e5f9b3ce8ac4282eef36a6 (patch) | |
tree | 1e707c3c9bc67c8bb33252b6face7fd4da63f270 /phpBB | |
parent | 404f3269dc0c31ccd15a7e2cf2774a777b7897e6 (diff) | |
parent | b0b70589a25594a32ad072315e9f78b197e1bea6 (diff) | |
download | forums-b0d55a69c7de246371e5f9b3ce8ac4282eef36a6.tar forums-b0d55a69c7de246371e5f9b3ce8ac4282eef36a6.tar.gz forums-b0d55a69c7de246371e5f9b3ce8ac4282eef36a6.tar.bz2 forums-b0d55a69c7de246371e5f9b3ce8ac4282eef36a6.tar.xz forums-b0d55a69c7de246371e5f9b3ce8ac4282eef36a6.zip |
Merge pull request #5325 from hubaishan/ticket/15612
[ticket/15612] Fix PHP7.2 count() bug in MSSQL driver
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/db/driver/mssqlnative.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/driver/mssqlnative.php b/phpBB/phpbb/db/driver/mssqlnative.php index de81a6a0c8..a4dcac5966 100644 --- a/phpBB/phpbb/db/driver/mssqlnative.php +++ b/phpBB/phpbb/db/driver/mssqlnative.php @@ -268,7 +268,7 @@ class mssqlnative extends \phpbb\db\driver\mssql_base unset($row['line2'], $row['line3']); } } - return (count($row)) ? $row : false; + return ($row !== null) ? $row : false; } /** |