From 87168c6c6c3e92505ee2f105c4937d4b298a407e Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Fri, 17 Jul 2020 11:37:43 -0400 Subject: [PATCH] PMCORE-1813 --- thirdparty/creole/drivers/mssql/MSSQLConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/creole/drivers/mssql/MSSQLConnection.php b/thirdparty/creole/drivers/mssql/MSSQLConnection.php index 0135300a2..6cd443b84 100644 --- a/thirdparty/creole/drivers/mssql/MSSQLConnection.php +++ b/thirdparty/creole/drivers/mssql/MSSQLConnection.php @@ -364,7 +364,7 @@ if (!function_exists('mssql_get_last_message') && extension_loaded('sqlsrv')) { function mssql_get_last_message() { $errors = sqlsrv_errors(); - if (count($errors)) { + if (!empty($errors) && is_array($errors)) { return $errors[0]['message']; } return null;