Merge pull request #624 from yitam/fixConnect

Check if the array is empty instead of using sizeof (issue with PHP 7.2)
This commit is contained in:
Jenny Tam 2017-12-11 16:27:47 -08:00 committed by GitHub
commit a8c43e8d20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -364,7 +364,7 @@ function isQualified($conn)
function connect($options = array(), $disableCE = false)
{
require('MsSetup.inc');
if (sizeof($options) > 0) {
if (!empty($options)) {
$connectionOptions = array_merge($connectionOptions, $options);
}
if (!$disableCE) {