mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
MSSQL: avoid warnings if result is invalid
This commit is contained in:
@@ -66,6 +66,9 @@ if (isset($_GET["mssql"])) {
|
||||
if (!$result) {
|
||||
$result = $this->_result;
|
||||
}
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
if (sqlsrv_field_metadata($result)) {
|
||||
return new Min_Result($result);
|
||||
}
|
||||
@@ -74,7 +77,7 @@ if (isset($_GET["mssql"])) {
|
||||
}
|
||||
|
||||
function next_result() {
|
||||
return sqlsrv_next_result($this->_result);
|
||||
return $this->_result ? sqlsrv_next_result($this->_result) : null;
|
||||
}
|
||||
|
||||
function result($query, $field = 0) {
|
||||
|
Reference in New Issue
Block a user