php <5.4 compat: array syntax (#313)
This commit is contained in:
parent
83fe083f2f
commit
da76e6b9b8
|
@ -259,7 +259,7 @@ if (isset($_GET["clickhouse"])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function unconvert_field($field, $return) {
|
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 "to$field[type]($return)";
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
|
Loading…
Reference in a new issue