]> git.joonet.de Git - adminer.git/commitdiff
php <5.4 compat: array syntax (#313)
authorhelix84 <helix84@centrum.sk>
Tue, 18 Dec 2018 13:21:23 +0000 (14:21 +0100)
committerJakub Vrána <jakub@vrana.cz>
Tue, 18 Dec 2018 13:21:23 +0000 (14:21 +0100)
adminer/drivers/clickhouse.inc.php

index 9882a1c572717788e908038a3dc84d3b1ed3af9e..2a1d19b0174f5cdd52085a9ab25a1ca4330fc10c 100644 (file)
@@ -259,7 +259,7 @@ if (isset($_GET["clickhouse"])) {
        }
 
        function unconvert_field($field, $return) {
-               if (in_array($field['type'], ["Int8", "Int16", "Int32", "Int64", "UInt8", "UInt16", "UInt32", "UInt64", "Float32", "Float64"])) {
+               if (in_array($field['type'], array("Int8", "Int16", "Int32", "Int64", "UInt8", "UInt16", "UInt32", "UInt64", "Float32", "Float64"))) {
                        return "to$field[type]($return)";
                }
                return $return;