From 1a75c88b763d119ee91c74633e842d798637d0c3 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 18 Oct 2015 07:30:16 -0400 Subject: [PATCH] Add missing checks Signed-off-by: Marc Delisle --- db_export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db_export.php b/db_export.php index ba2aeae458..abd4b4c3d7 100644 --- a/db_export.php +++ b/db_export.php @@ -91,7 +91,7 @@ foreach (array('table_select', 'table_structure', 'table_data') as $one_key) { } foreach ($tables as $each_table) { - if (isset($_GET['table_select'])) { + if (isset($_GET['table_select']) && is_array($_GET['table_select'])) { $is_checked = PMA_getCheckedClause( $each_table['Name'], $_GET['table_select'] ); @@ -102,7 +102,7 @@ foreach ($tables as $each_table) { } else { $is_checked = ' checked="checked"'; } - if (isset($_GET['table_structure'])) { + if (isset($_GET['table_structure']) && is_array($_GET['table_structure'])) { $structure_checked = PMA_getCheckedClause( $each_table['Name'], $_GET['table_structure'] );