private function _setHistory() { if (!PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message']) && !empty($GLOBALS['sql_query']) && (isset($GLOBALS['dbi']) && ($GLOBALS['dbi']->getLink() || isset($GLOBALS['controllink']) && $GLOBALS['controllink']))) { PMA_setHistory(PMA_ifSetOr($GLOBALS['db'], ''), PMA_ifSetOr($GLOBALS['table'], ''), $GLOBALS['cfg']['Server']['user'], $GLOBALS['sql_query']); } }