From 891ed95f6d9b55261fb0edc6c464cb22317076f8 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sun, 31 May 2009 20:13:16 +0000 Subject: [PATCH] Don't display relative functions with new item git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@634 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- include/editing.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/editing.inc.php b/include/editing.inc.php index 61bafca6..93609045 100644 --- a/include/editing.inc.php +++ b/include/editing.inc.php @@ -25,7 +25,7 @@ function input($name, $field, $value, $separator = "") { //! pass empty if (preg_match('~char|date|time~', $field["type"])) { $options = (preg_match('~char~', $field["type"]) ? array("", "md5", "sha1", "password", "uuid") : array("", "now")); } - if (!isset($_GET["clone"]) && !isset($_GET["call"])) { + if (!isset($_GET["clone"]) && !isset($_GET["call"]) && (isset($_GET["select"]) || where($_GET))) { if (preg_match('~int|float|double|decimal~', $field["type"])) { $options = array("", "+", "-"); }