bug #1824506 [profiling] Profile command repeated on older MySQL servers
This commit is contained in:
@@ -906,11 +906,11 @@ if (! defined('PMA_MINIMUM_COMMON')) {
|
||||
* (note: when $cfg['ServerDefault'] = 0, constant is not defined)
|
||||
*/
|
||||
|
||||
if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION >= 50037 && isset($_REQUEST['profiling'])) {
|
||||
$_SESSION['profiling'] = true;
|
||||
if (PMA_profilingSupported() && isset($_REQUEST['profiling'])) {
|
||||
$_SESSION['profiling'] = true;
|
||||
} elseif (isset($_REQUEST['profiling_form'])) {
|
||||
// the checkbox was unchecked
|
||||
unset($_SESSION['profiling']);
|
||||
// the checkbox was unchecked
|
||||
unset($_SESSION['profiling']);
|
||||
}
|
||||
|
||||
} // end if !defined('PMA_MINIMUM_COMMON')
|
||||
|
Reference in New Issue
Block a user