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:
authorMichal Čihař <michal@cihar.com>2016-06-16 15:56:41 +0300
committerMichal Čihař <michal@cihar.com>2016-06-16 15:56:41 +0300
commita7cd19355474c1a9ea7609c90fdc5d44173b49a1 (patch)
tree59e8bb3ddee011d0a9b462f02918b50159aefba8 /tbl_replace.php
parenta87c1644356dd33f2642893a863b009e2ebea361 (diff)
Make it clear whether addMessages expects string or Message object
With this, it's way easier to anaylize code for potential problems with escaping. Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tbl_replace.php')
-rw-r--r--tbl_replace.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl_replace.php b/tbl_replace.php
index b6ee7ab169..2fd401af71 100644
--- a/tbl_replace.php
+++ b/tbl_replace.php
@@ -349,11 +349,11 @@ if ($row_skipped) {
$message->addMessages($last_messages, '<br />');
if (! empty($warning_messages)) {
- $message->addMessages($warning_messages, '<br />');
+ $message->addMessagesString($warning_messages, '<br />');
$message->isError(true);
}
if (! empty($error_messages)) {
- $message->addMessages($error_messages);
+ $message->addMessagesString($error_messages);
$message->isError(true);
}
unset(