PMCORE-1813

This commit is contained in:
Paula Quispe
2020-07-17 11:37:43 -04:00
parent b6f50f37f5
commit 87168c6c6c

View File

@@ -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;