Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Simplify syntax errors

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1270 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit 1a8a5fdadae6e1a093e0c968eb20fdeb82acdabe 1 parent e4bfffd
jakubvrana authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  adminer/sql.inc.php
2  adminer/sql.inc.php
@@ -63,7 +63,7 @@
63 63 $start = explode(" ", microtime()); // microtime(true) is available since PHP 5
64 64 //! don't allow changing of character_set_results, convert encoding of displayed query
65 65 if (!$connection->multi_query($q)) {
66   - echo "<p class='error'>" . lang('Error in query') . ": " . h($connection->error) . "\n";
  66 + echo "<p class='error'>" . lang('Error in query') . ": " . h(preg_replace('~^You have an error.*syntax to use~U', "Syntax error", $connection->error)) . "\n";
67 67 if ($_POST["error_stops"]) {
68 68 break;
69 69 }

0 comments on commit 1a8a5fd

Please sign in to comment.
Something went wrong with that request. Please try again.