Use empty rather than sizeof (issue with PHP 7.2)
This commit is contained in:
parent
1ed8ae72ed
commit
96942d49cf
|
@ -136,7 +136,7 @@ function connect($options = array())
|
||||||
{
|
{
|
||||||
include('MsSetup.inc');
|
include('MsSetup.inc');
|
||||||
|
|
||||||
if (sizeof($options) > 0) {
|
if (!empty($options)) {
|
||||||
$connectionOptions = array_merge($connectionOptions, $options);
|
$connectionOptions = array_merge($connectionOptions, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue