diff --git a/db_details.php3 b/db_details.php3
index cbfded0b9..d7d54e1ba 100755
--- a/db_details.php3
+++ b/db_details.php3
@@ -84,8 +84,9 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])
echo "\n";
}
echo "\n";
- echo "".$strBookmarkView;
- echo "".$strDelete;
+ echo "".$strSubmit;
+ echo "".$strBookmarkView;
+ echo "".$strDelete;
echo "
\n";
}
}
diff --git a/db_readdump.php3 b/db_readdump.php3
index 0aba70c80..20ef36d01 100755
--- a/db_readdump.php3
+++ b/db_readdump.php3
@@ -14,18 +14,17 @@ include("lib.inc.php3");
// Bookmark Support
if(!empty($id_bookmark)) {
- if(!empty($action_bookmark)) {
- switch($action_bookmark) {
- case 0:
- $sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
- break;
- case 1:
- $sql_query = delete_bookmarks($db, $cfgBookmark, $id_bookmark);
- break;
- }
+ switch($action_bookmark) {
+ case 0:
+ $sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
+ break;
+ case 1:
+ $sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
+ break;
+ case 2:
+ $sql_query = delete_bookmarks($db, $cfgBookmark, $id_bookmark);
+ break;
}
- else
- $sql_query = query_bookmarks($db, $cfgBookmark, $id_bookmark);
}
//
@@ -39,7 +38,7 @@ else if (get_magic_quotes_gpc()) {
$pieces = split_string($sql_query, ";");
-if (count($pieces) == 1 && !empty($pieces[0]) && empty($action_bookmark)) {
+if (count($pieces) == 1 && !empty($pieces[0]) && $action_bookmark==0) {
$sql_query = addslashes(trim($pieces[0]));
// Enforce reloading of the left frame when a table has to be created
if (eregi('^CREATE TABLE (.+)', $sql_query)) {