mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Elasticsearch: only throw error on actual decoding error
This commit is contained in:
@@ -31,7 +31,7 @@ if (isset($_GET["elastic"])) {
|
||||
return false;
|
||||
}
|
||||
$return = json_decode($file, true);
|
||||
if (!$return) {
|
||||
if ($return === null) {
|
||||
$this->errno = json_last_error();
|
||||
if (function_exists('json_last_error_msg')) {
|
||||
$this->error = json_last_error_msg();
|
||||
|
Reference in New Issue
Block a user