Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2011-08-17 15:13:18 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2011-08-17 15:13:18 +0400
commit46722b80359c81626bdbc429329b1bc710db3530 (patch)
treed2ccb052c173cbffce6ee6bdcb9b4839cd3bf099 /tbl_replace.php
parent5e11e88a147e16c96c33547e199dca31d1a20c77 (diff)
parent576e76d419550bb355f0591dbaf9628871e4dd65 (diff)
Merge branch 'master' into OpenGIS
Diffstat (limited to 'tbl_replace.php')
-rw-r--r--tbl_replace.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/tbl_replace.php b/tbl_replace.php
index 8fd8197280..460908e350 100644
--- a/tbl_replace.php
+++ b/tbl_replace.php
@@ -381,7 +381,7 @@ foreach ($query as $single_query) {
}
if (! $result) {
- $error_messages[] = PMA_DBI_getError();
+ $error_messages[] = PMA_Message::sanitize(PMA_DBI_getError());
} else {
// The next line contains a real assignment, it's not a typo
if ($tmp = @PMA_DBI_affected_rows()) {
@@ -405,8 +405,8 @@ foreach ($query as $single_query) {
} // end if
foreach (PMA_DBI_get_warnings() as $warning) {
- $warning_messages[] = $warning['Level'] . ': #' . $warning['Code']
- . ' ' . $warning['Message'];
+ $warning_messages[] = PMA_Message::sanitize($warning['Level'] . ': #' . $warning['Code']
+ . ' ' . $warning['Message']);
}
unset($result);
@@ -422,10 +422,6 @@ if ($is_insert && count($value_sets) > 0) {
$message->addMessages($last_messages, '<br />');
if (! empty($warning_messages)) {
- /**
- * @todo use a <div class="error"> in PMA_showMessage() for this part of
- * the message
- */
$message->addMessages($warning_messages, '<br />');
$message->isError(true);
}