PMCORE-1813
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user