From: jakubvrana Date: Wed, 16 Dec 2009 13:10:28 +0000 (+0000) Subject: Simplify syntax errors X-Git-Tag: v3.0.0~277 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=1a8a5fdadae6e1a093e0c968eb20fdeb82acdabe;p=adminer.git Simplify syntax errors git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1270 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 1f4a6a33..b666be0d 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -63,7 +63,7 @@ if (!$error && $_POST) { $start = explode(" ", microtime()); // microtime(true) is available since PHP 5 //! don't allow changing of character_set_results, convert encoding of displayed query if (!$connection->multi_query($q)) { - echo "

" . lang('Error in query') . ": " . h($connection->error) . "\n"; + echo "

" . lang('Error in query') . ": " . h(preg_replace('~^You have an error.*syntax to use~U', "Syntax error", $connection->error)) . "\n"; if ($_POST["error_stops"]) { break; }