Commit 9776d3f8 authored by Medicean's avatar Medicean

(Fix:Core) fix php sqlsrv query exception err

parent 49067e2f
......@@ -102,7 +102,14 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
}
@sqlsrv_free_stmt($q);
}else{
echo("Status\t|\t\r\n".base64_encode(sqlsrv_errors()[0]['message'])."\t|\t\r\n");
echo("Status\t|\t\r\n");
if(($e = sqlsrv_errors()) != null){
foreach($e as $v){
echo(base64_encode($e['message'])."\t|\t\r\n");
}
}else{
echo("RmFsc2U=");
}
}
@sqlsrv_close($T);`.replace(/\n\s+/g, ''),
[arg1]: '#{host}',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment