Simplify syntax errors

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1270 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-12-16 13:10:28 +00:00
parent e4bfffdc0f
commit 1a8a5fdada

View file

@ -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 "<p class='error'>" . lang('Error in query') . ": " . h($connection->error) . "\n";
echo "<p class='error'>" . 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;
}