Check if the parameter is empty instead of using sizeof (issue with PHP 7.2)

This commit is contained in:
Jenny Tam 2017-12-11 13:56:49 -08:00
parent 54ca7ffed6
commit e234f2cd50

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) {