diff options
author | Michal Čihař <michal@cihar.com> | 2017-08-16 16:55:24 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-08-16 16:55:24 +0300 |
commit | ec9fe20e48882e76197804e96ac6ae543665397e (patch) | |
tree | 95e75f67808b52c1a031626d824dbc26b14f22b3 /db_export.php | |
parent | 1f3bab4c0ce12dc0325e046c432bbc3707839e09 (diff) |
Use Response::addHTML to render error message
This way the rendering is explicit instead of relying on hidden logic in
handling global variables.
See #13585
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'db_export.php')
-rw-r--r-- | db_export.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db_export.php b/db_export.php index 7098db8094..61a01a1189 100644 --- a/db_export.php +++ b/db_export.php @@ -48,8 +48,9 @@ $export_page_title = __('View dump (schema) of database'); // exit if no tables in db found if ($num_tables < 1) { - $message = PhpMyAdmin\Message::error(__('No tables found in database.')); - $message->getDisplay(); + $response->addHTML( + PhpMyAdmin\Message::error(__('No tables found in database.'))->getDisplay() + ); exit; } // end if |