no need to call PMA_profilingSupported() if isset($_REQUEST['profiling']) is false
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user