From da76e6b9b8b1e735314eb8a537da494e97bbb1ad Mon Sep 17 00:00:00 2001 From: helix84 Date: Tue, 18 Dec 2018 14:21:23 +0100 Subject: [PATCH] php <5.4 compat: array syntax (#313) --- adminer/drivers/clickhouse.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/drivers/clickhouse.inc.php b/adminer/drivers/clickhouse.inc.php index 9882a1c5..2a1d19b0 100644 --- a/adminer/drivers/clickhouse.inc.php +++ b/adminer/drivers/clickhouse.inc.php @@ -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;