diff --git a/libraries/navigation/Nodes/Node_Database.class.php b/libraries/navigation/Nodes/Node_Database.class.php index ab08d63406..0fda7a4709 100644 --- a/libraries/navigation/Nodes/Node_Database.class.php +++ b/libraries/navigation/Nodes/Node_Database.class.php @@ -498,22 +498,19 @@ class Node_Database extends Node . " WHERE `username`='" . PMA_Util::sqlAddSlashes($GLOBALS['cfg']['Server']['user']) ."'" . " AND `db_name`='" . PMA_Util::sqlAddSlashes($db) . "'"; - $result = PMA_queryAsControlUser($sqlQuery, false); - - if ($result) { - $count = $GLOBALS['dbi']->fetchValue($result); - if ($count > 0) { - $ret = '' - . '' - . PMA_Util::getImage('b_undo.png', 'Unhide') - . ''; - } + $count = $GLOBALS['dbi']->fetchValue( + $sqlQuery, 0, 0, $GLOBALS['controllink'] + ); + if ($count > 0) { + $ret = '' + . '' + . PMA_Util::getImage('b_undo.png', 'Unhide') + . ''; } - $GLOBALS['dbi']->freeResult($result); } return $ret; }