From 62e582456e3daee804ff3cacd6a85d74ed770c08 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 8 Aug 2013 19:36:15 -0700 Subject: [PATCH] Save bytes --- adminer/include/editing.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index da1cb5be..42389be4 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -144,7 +144,10 @@ function edit_type($key, $field, $collations, $foreign_keys = array()) { if ($type && !isset($types[$type]) && !isset($foreign_keys[$type])) { array_unshift($structured_types, $type); } -echo optionlist($structured_types + ($foreign_keys ? array(lang('Foreign keys') => $foreign_keys) : array()), $type); +if ($foreign_keys) { + $structured_types[lang('Foreign keys')] = $foreign_keys; +} +echo optionlist($structured_types, $type); ?> " size="3" onfocus="editingLengthFocus(this);" onchange="editingLengthChange(this);" onkeyup="this.onchange();">