Skip to content

Commit

Permalink
merge r7169 from branch 2.1 to trunk
Browse files Browse the repository at this point in the history
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/trunk@7170 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Oct 13, 2010
1 parent ac818f1 commit 00ebefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/include/functions_upload.inc.php
Expand Up @@ -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)
{
Expand Down

0 comments on commit 00ebefc

Please sign in to comment.