]> git.joonet.de Git - adminer.git/commitdiff
Fix style
authorJakub Vrana <jakub@vrana.cz>
Thu, 20 Feb 2025 07:35:42 +0000 (08:35 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 20 Feb 2025 07:37:13 +0000 (08:37 +0100)
adminer/create.inc.php
adminer/include/functions.inc.php

index 92e375cb37376beac0247eac000e977d46d62459..089f2bc6e118a26fa4cb93763235c9075fbb18d5 100644 (file)
@@ -89,7 +89,7 @@ if ($_POST && !process_fields($row["fields"]) && !$error) {
                                }, ARRAY_FILTER_USE_KEY);
 
                                foreach ($params["partition_names"] as $key => $name) {
-                                       if ($name === "") {
+                                       if ($name == "") {
                                                unset($params["partition_names"][$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
-                                       $partitioning .= "\nPARTITION BY {$params["partition_by"]}({$params["partition"]})";
+                                       $partitioning .= "\nPARTITION BY $params[partition_by]($params[partition])";
                                        if ($partitions) {
                                                $partitioning .= " (" . implode(",", $partitions) . "\n)";
                                        } elseif ($params["partitions"]) {
-                                               $partitioning .= " PARTITIONS " . (int)$params["partitions"];
+                                               $partitioning .= " PARTITIONS " . (+$params["partitions"]);
                                        }
                                }
                        } elseif (preg_match("~partitioned~", $table_status["Create_options"])) {
index c57a05739a52878ecb6939251b435486e484f719..90a3c7ea0be9c21240aaab5dedd10e8663ede7d6 100644 (file)
@@ -1116,7 +1116,7 @@ function search_tables() {
 }
 
 /**
-* @param string $table
+* @param string
 * @return array
 */
 function get_partitions_info($table) {