]> git.joonet.de Git - adminer.git/commitdiff
Fix elastic after ef5a7639
authorJakub Vrana <jakub@vrana.cz>
Sat, 27 Jan 2018 10:08:56 +0000 (11:08 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 27 Jan 2018 10:08:56 +0000 (11:08 +0100)
adminer/drivers/elastic.inc.php

index cdd5e466cedf52e27c24f757d2711255fc36c307..2f8fd276c96bdda03cb094d7f322b03027aa83e3 100644 (file)
@@ -412,7 +412,7 @@ if (isset($_GET["elastic"])) {
                $properties = array();
                foreach($fields as $f) {
                        $field_name = trim($f[1][0]);
-                       $field_type = trim($f[1][1] ? "" : "text");
+                       $field_type = trim($f[1][1] ? $f[1][1] : "text");
                        $properties[$field_name] = array(
                                'type' => $field_type
                        );