diff --git a/adminer/create.inc.php b/adminer/create.inc.php index acef23f7..68ef8746 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -157,12 +157,23 @@ foreach ($engines as $engine) { "(" . lang('collation') . ")") + $collations, $row["Collation"]) : ""); ?>
: "> - -' : ''); ?> + +' : ''); ?>
>
diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index bb603b69..b0b1b5e2 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -206,16 +206,11 @@ function type_class($type) {
* @param string TABLE or PROCEDURE
* @param int number of fields allowed by Suhosin
* @param array returned by referencable_primary()
-* @return bool column comments used
+* @param bool display comments column
+* @return null
*/
function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array(), $comments = false) {
global $inout;
- foreach ($fields as $field) {
- if ($field["comment"] != "") {
- $comments = true;
- break;
- }
- }
?>
@@ -226,7 +221,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
NULL
AI
-
+ >
" . lang('Comment') : ""); ?>
"; ?>
@@ -245,7 +240,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei
checked onclick="var field = this.form['fields[' + this.value + '][field]']; if (!field.value) { field.value = 'id'; field.onchange(); }">
- " onchange="this.previousSibling.checked = true;">
+ >" onchange="this.previousSibling.checked = true;">
" : ""); ?>
" : "");
echo "\n";
}
- return $comments;
}
/** Move fields up and down or add field
diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php
index ea9b885c..1c6f3d80 100644
--- a/adminer/include/functions.inc.php
+++ b/adminer/include/functions.inc.php
@@ -86,12 +86,13 @@ function nl_br($string) {
* @param bool
* @param string
* @param string
+* @param bool
* @return string
*/
-function checkbox($name, $value, $checked, $label = "", $onclick = "") {
+function checkbox($name, $value, $checked, $label = "", $onclick = "", $jsonly = false) {
static $id = 0;
$id++;
- $return = "";
+ $return = "";
return ($label != "" ? "" : $return);
}