aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-10-13 09:42:03 +0000
committerplegall <plg@piwigo.org>2010-10-13 09:42:03 +0000
commit126f4aac29f5320d8f55d143363563ce36010b48 (patch)
treed35b3d52fdf560aba511000df075461ade871be5 /admin/include
parent860ba083671be494ccd618aa9fbfb3cb2d075c3d (diff)
bug 1914 fixed: broken admin web upload with PostgreSQL as database engine.
The tablename to retrieve the inserted image is mandatory for PostgreSQL and was missing. Patch by netzimme. git-svn-id: http://piwigo.org/svn/branches/2.1@7169 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_upload.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php
index bfd5d5107..8fcfac4f0 100644
--- a/admin/include/functions_upload.inc.php
+++ b/admin/include/functions_upload.inc.php
@@ -130,7 +130,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
array($insert)
);
- $image_id = pwg_db_insert_id();
+ $image_id = pwg_db_insert_id(IMAGES_TABLE);
if (isset($categories) and count($categories) > 0)
{