From c1d6177df9ebb853217958d91aba26f35f66a497 Mon Sep 17 00:00:00 2001 From: nikrou Date: Mon, 15 Feb 2010 19:49:04 +0000 Subject: Feature 1255 : update pwg_db_insert_id() function. PosgreSQL needs table name to retrieve last insert auto increment id. git-svn-id: http://piwigo.org/svn/trunk@4892 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_comment.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions_comment.inc.php') diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php index f22aa3f6e..c4f021edf 100644 --- a/include/functions_comment.inc.php +++ b/include/functions_comment.inc.php @@ -168,7 +168,7 @@ INSERT INTO '.COMMENTS_TABLE.' pwg_query($query); - $comm['id'] = pwg_db_insert_id(); + $comm['id'] = pwg_db_insert_id(COMMENTS_TABLE); if (($comment_action=='validate' and $conf['email_admin_on_comment']) or ($comment_action!='validate' and $conf['email_admin_on_comment_validation'])) -- cgit v1.2.3