aboutsummaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-02-15 19:49:04 +0000
committernikrou <nikrou@piwigo.org>2010-02-15 19:49:04 +0000
commitc1d6177df9ebb853217958d91aba26f35f66a497 (patch)
treebff2b1998cc4d8030a48a96c39104887066e53dd /upload.php
parent78b517bde6abed39b858f0854c3fca5d82bed4b9 (diff)
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
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload.php b/upload.php
index 5e595f90c..94591cf03 100644
--- a/upload.php
+++ b/upload.php
@@ -248,7 +248,7 @@ if ( isset( $_POST['submit'] ) and !isset( $_GET['waiting_id'] ) )
$query.= ",'".$_POST['mail_address']."',".time().",'".$xml_infos."')";
$query.= ';';
pwg_query( $query );
- $page['waiting_id'] = pwg_db_insert_id();
+ $page['waiting_id'] = pwg_db_insert_id(WAITING_TABLE);
if ($conf['email_admin_on_picture_uploaded'])
{