aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/history.php4
-rw-r--r--admin/include/functions.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/admin/history.php b/admin/history.php
index 86014fc7b..b0022b902 100644
--- a/admin/history.php
+++ b/admin/history.php
@@ -136,7 +136,7 @@ INSERT INTO '.SEARCH_TABLE.'
;';
pwg_query($query);
- $search_id = pwg_db_insert_id();
+ $search_id = pwg_db_insert_id(SEARCH_TABLE);
redirect(
PHPWG_ROOT_PATH.'admin.php?page=history&search_id='.$search_id
@@ -198,7 +198,7 @@ INSERT INTO '.SEARCH_TABLE.'
;';
pwg_query($query);
- $search_id = pwg_db_insert_id();
+ $search_id = pwg_db_insert_id(SEARCH_TABLE);
redirect(
PHPWG_ROOT_PATH.'admin.php?page=history&search_id='.$search_id
diff --git a/admin/include/functions.php b/admin/include/functions.php
index d77b2cb81..5cfbf94f0 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1254,7 +1254,7 @@ SELECT id, uppercats, global_rank, visible, status
array($insert)
);
- $inserted_id = pwg_db_insert_id();
+ $inserted_id = pwg_db_insert_id(CATEGORIES_TABLE);
$query = '
UPDATE
@@ -1387,7 +1387,7 @@ SELECT id
)
);
- $page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id();
+ $page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id(TAGS_TABLE);
}
else
{
@@ -1662,7 +1662,7 @@ SELECT id
)
);
- $inserted_id = pwg_db_insert_id();
+ $inserted_id = pwg_db_insert_id(TAGS_TABLE);
return array(
'info' => sprintf(