diff --git a/lang/cs.inc.php b/lang/cs.inc.php index 3b631352..748e087c 100644 --- a/lang/cs.inc.php +++ b/lang/cs.inc.php @@ -213,4 +213,5 @@ $translations = array( 'Import' => 'Import', 'Table structure' => 'Struktura tabulky', 'Select table' => 'Vypsat tabulku', + 'Stop on error' => 'Zastavit při chybě', ); diff --git a/sql.inc.php b/sql.inc.php index a01ae9fa..d100ffdb 100644 --- a/sql.inc.php +++ b/sql.inc.php @@ -29,6 +29,9 @@ if (!$error && $_POST) { //! don't allow changing of character_set_results, convert encoding of displayed query if (!$mysql->multi_query(substr($query, 0, $match[0][1]))) { echo "

" . lang('Error in query') . ": " . htmlspecialchars($mysql->error) . "

\n"; + if ($_POST["error_stops"]) { + break; + } } else { do { $result = $mysql->store_result(); @@ -64,6 +67,7 @@ if (!$error && $_POST) { +