Check if variable exists before calling

This commit is contained in:
lorilee
2010-08-11 13:27:08 -07:00
parent b87010e89b
commit 4b4374d8b3

View File

@@ -673,9 +673,9 @@ else {
* Displays a back button with all the $_REQUEST data in the URL * Displays a back button with all the $_REQUEST data in the URL
*/ */
// Convert the multiple select elements from an array to a string // Convert the multiple select elements from an array to a string
if($export_type == 'server') { if($export_type == 'server' && isset($_REQUEST['db_select'])) {
$_REQUEST['db_select'] = implode(",", $_REQUEST['db_select']); $_REQUEST['db_select'] = implode(",", $_REQUEST['db_select']);
} elseif($export_type == 'database') { } elseif($export_type == 'database' && isset($_REQUEST['table_select'])) {
$_REQUEST['table_select'] = implode(",", $_REQUEST['table_select']); $_REQUEST['table_select'] = implode(",", $_REQUEST['table_select']);
} }