mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01:00
[ticket/15612] Fix PHP7.2 count() bug in MSSQL driver
sqlsrv_fetch_array() function returns an array when data found, null when no data or false on error. So we need to change null to false only. PHPBB3-15612
This commit is contained in:
parent
bd90a53589
commit
b0b70589a2
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user