diff --git a/adminer/drivers/elastic.inc.php b/adminer/drivers/elastic.inc.php index 7e4a3f99..217ded59 100644 --- a/adminer/drivers/elastic.inc.php +++ b/adminer/drivers/elastic.inc.php @@ -23,7 +23,7 @@ if (isset($_GET["elastic"])) { 'ignore_errors' => 1, // available since PHP 5.2.10 )))); if (!$file) { - $this->error = $php_errormsg; + $this->error = error_get_last()['message']; return $file; } if (!preg_match('~^HTTP/[0-9.]+ 2~i', $http_response_header[0])) {