From: Gintautas Miselis Date: Wed, 9 May 2018 13:43:01 +0000 (+0100) Subject: mssql: ignore serverproperty error X-Git-Tag: v4.6.3~6 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=b98d0bcc55c1cf3aba6a75e572fd82cbeeca022f;p=adminer.git mssql: ignore serverproperty error This change allows connection to Sybase ASE 15 --- diff --git a/adminer/drivers/mssql.inc.php b/adminer/drivers/mssql.inc.php index 11f6436b..a6b9e4f9 100644 --- a/adminer/drivers/mssql.inc.php +++ b/adminer/drivers/mssql.inc.php @@ -147,8 +147,10 @@ if (isset($_GET["mssql"])) { $this->_link = @mssql_connect($server, $username, $password); if ($this->_link) { $result = $this->query("SELECT SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('Edition')"); - $row = $result->fetch_row(); - $this->server_info = $this->result("sp_server_info 2", 2) . " [$row[0]] $row[1]"; + if ($result) { + $row = $result->fetch_row(); + $this->server_info = $this->result("sp_server_info 2", 2) . " [$row[0]] $row[1]"; + } } else { $this->error = mssql_get_last_message(); }