1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

Fix style

This commit is contained in:
Jakub Vrana
2025-02-20 08:35:42 +01:00
parent 8f2b4ced62
commit f35dd89c65
2 changed files with 4 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ if ($_POST && !process_fields($row["fields"]) && !$error) {
}, ARRAY_FILTER_USE_KEY); }, ARRAY_FILTER_USE_KEY);
foreach ($params["partition_names"] as $key => $name) { foreach ($params["partition_names"] as $key => $name) {
if ($name === "") { if ($name == "") {
unset($params["partition_names"][$key]); unset($params["partition_names"][$key]);
unset($params["partition_values"][$key]); unset($params["partition_values"][$key]);
} }
@@ -105,11 +105,11 @@ if ($_POST && !process_fields($row["fields"]) && !$error) {
} }
// $params["partition"] can be expression, not only column // $params["partition"] can be expression, not only column
$partitioning .= "\nPARTITION BY {$params["partition_by"]}({$params["partition"]})"; $partitioning .= "\nPARTITION BY $params[partition_by]($params[partition])";
if ($partitions) { if ($partitions) {
$partitioning .= " (" . implode(",", $partitions) . "\n)"; $partitioning .= " (" . implode(",", $partitions) . "\n)";
} elseif ($params["partitions"]) { } elseif ($params["partitions"]) {
$partitioning .= " PARTITIONS " . (int)$params["partitions"]; $partitioning .= " PARTITIONS " . (+$params["partitions"]);
} }
} }
} elseif (preg_match("~partitioned~", $table_status["Create_options"])) { } elseif (preg_match("~partitioned~", $table_status["Create_options"])) {

View File

@@ -1116,7 +1116,7 @@ function search_tables() {
} }
/** /**
* @param string $table * @param string
* @return array * @return array
*/ */
function get_partitions_info($table) { function get_partitions_info($table) {