Skip to content

Commit

Permalink
No need to check for parser error as we do not highlight the query an…
Browse files Browse the repository at this point in the history
…yway
  • Loading branch information
nijel committed Aug 6, 2013
1 parent 99af0cb commit a9bce21
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions libraries/Util.class.php
Expand Up @@ -397,15 +397,6 @@ public static function unQuote($quoted_string, $quote = null)
*/
public static function formatSql($sql_query)
{
global $cfg;

// Check that we actually have a valid set of parsed data
// well, not quite
// first check for the SQL parser having hit an error
if (PMA_SQP_isError()) {
return htmlspecialchars($sql_query);
}

return '<span class="inner_sql"><pre>' . "\n"
. htmlspecialchars($sql_query) . "\n"
. '</pre></span>';
Expand Down

0 comments on commit a9bce21

Please sign in to comment.