diff options
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions_upload.inc.php | 2 |
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) { |