Use empty rather than sizeof (issue with PHP 7.2)

This commit is contained in:
Jenny Tam 2017-12-14 13:45:56 -08:00
parent 1ed8ae72ed
commit 96942d49cf

View file

@ -136,7 +136,7 @@ function connect($options = array())
{
include('MsSetup.inc');
if (sizeof($options) > 0) {
if (!empty($options)) {
$connectionOptions = array_merge($connectionOptions, $options);
}