mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
php <5.4 compat: array syntax (#313)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user