mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user