This change allows connection to Sybase ASE 15
$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();
}