diff --git a/import.php b/import.php index 6971b17b6c..d34a12b7c4 100644 --- a/import.php +++ b/import.php @@ -97,7 +97,7 @@ if (! empty($sql_query)) { '/^(CREATE|ALTER)\s+(VIEW|TABLE|DATABASE|SCHEMA)\s+/i', $sql_query )) { - $ajax_reload['reload'] = true; + $ajax_reload = array('reload' => true); } // do a dynamic reload if table is RENAMED @@ -107,8 +107,8 @@ if (! empty($sql_query)) { $sql_query, $rename_table_names )) { + $ajax_reload = array('reload' => true); $ajax_reload['table_name'] = PMA_Util::unQuote($rename_table_names[2]); - $ajax_reload['reload'] = true; } $sql_query = ''; @@ -299,6 +299,9 @@ if (! empty($id_bookmark)) { $import_text ) ) { + if (! isset($ajax_reload)) { + $ajax_reload = array(); + } $ajax_reload['reload'] = true; } break; diff --git a/libraries/Console.class.php b/libraries/Console.class.php index fa9e538208..102441ae7f 100644 --- a/libraries/Console.class.php +++ b/libraries/Console.class.php @@ -87,15 +87,15 @@ class PMA_Console { $output = ''; $cfgBookmark = PMA_Bookmark_getParams(); - if($cfgBookmark) { + if ($cfgBookmark) { - $tpl_bookmark_actions = - '' . __('Collapse') . ' ' - . ' ' - . '' . __('Requery') . ' ' - . '' . __('Reedit') . ' ' + $tpl_bookmark_actions + = '' . __('Collapse') . ' ' + . ' ' + . '' . __('Requery') . ' ' + . '' . __('Reedit') . ' ' // . '' . __('Delete') . ' ' - . '' . __('Database') . ': %s'; + . '' . __('Database') . ': %s'; $bookmarks = PMA_Bookmark_getList(); $output .= '