From 7056ca9458d26b24a6b1d9255073237c1636ca33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 26 Jan 2016 14:34:01 +0100 Subject: [PATCH] Do not process subforms with PMA_MINIMUM_COMMON MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In such case needed infrastructure is not loaded, so related code won't work anyway. Signed-off-by: Michal Čihař --- libraries/common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/common.inc.php b/libraries/common.inc.php index d4d55d4757..0c7ffba91a 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -235,7 +235,7 @@ unset($key, $value, $variables_whitelist); * so we now check if a subform is submitted */ $__redirect = null; -if (isset($_POST['usesubform'])) { +if (isset($_POST['usesubform']) && ! defined('PMA_MINIMUM_COMMON')) { // if a subform is present and should be used // the rest of the form is deprecated $subform_id = key($_POST['usesubform']);