From 7ba7db2806c4fbc92331c60178577c481765ab95 Mon Sep 17 00:00:00 2001 From: Manish Bisht Date: Mon, 14 Aug 2017 06:56:19 +0530 Subject: [PATCH] show error message on export page when database is empty Signed-off-by: Manish Bisht --- db_export.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db_export.php b/db_export.php index 2e447749c1..7098db8094 100644 --- a/db_export.php +++ b/db_export.php @@ -48,7 +48,8 @@ $export_page_title = __('View dump (schema) of database'); // exit if no tables in db found if ($num_tables < 1) { - PhpMyAdmin\Message::error(__('No tables found in database.'))->display(); + $message = PhpMyAdmin\Message::error(__('No tables found in database.')); + $message->getDisplay(); exit; } // end if