From 5db1ea33018d9f98e75d2d4715a86d3a5dbb882e Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 8 Feb 2021 17:22:53 +0100 Subject: [PATCH] Save bytes --- adminer/include/adminer.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index b77f3650..626c7ab0 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -676,8 +676,9 @@ class Adminer { function editFunctions($field) { global $edit_functions; $return = ($field["null"] ? "NULL/" : ""); + $update = isset($_GET["select"]) || where($_GET); foreach ($edit_functions as $key => $functions) { - if (!$key || (!isset($_GET["call"]) && (isset($_GET["select"]) || where($_GET)))) { // relative functions + if (!$key || (!isset($_GET["call"]) && $update)) { // relative functions foreach ($functions as $pattern => $val) { if (!$pattern || preg_match("~$pattern~", $field["type"])) { $return .= "/$val"; @@ -688,7 +689,7 @@ class Adminer { } } } - if ($field["auto_increment"] && !isset($_GET["select"]) && !where($_GET)) { + if ($field["auto_increment"] && !$update) { $return = lang('Auto Increment'); } return explode("/", $return);