no need to call PMA_profilingSupported() if isset($_REQUEST['profiling']) is false

This commit is contained in:
Sebastian Mendel
2008-01-21 11:44:37 +00:00
parent 227c7747c0
commit 32ba2d44bf

View File

@@ -912,8 +912,7 @@ if (! defined('PMA_MINIMUM_COMMON')) {
* check if profiling was requested and remember it * check if profiling was requested and remember it
* (note: when $cfg['ServerDefault'] = 0, constant is not defined) * (note: when $cfg['ServerDefault'] = 0, constant is not defined)
*/ */
if (isset($_REQUEST['profiling']) && PMA_profilingSupported()) {
if (PMA_profilingSupported() && isset($_REQUEST['profiling'])) {
$_SESSION['profiling'] = true; $_SESSION['profiling'] = true;
} elseif (isset($_REQUEST['profiling_form'])) { } elseif (isset($_REQUEST['profiling_form'])) {
// the checkbox was unchecked // the checkbox was unchecked