summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-06 18:33:50 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-06 18:33:50 -0500
commit77928015f2a865d69432b160c326cabf2e7a9bf6 (patch)
tree3cd86b271aaa6b9c134737d5129733985501f423
parent65f635c1579ae4eb0226f75a8c7d8405b725b3d5 (diff)
downloadpo-77928015f2a865d69432b160c326cabf2e7a9bf6.tar.gz
po-77928015f2a865d69432b160c326cabf2e7a9bf6.tar.bz2
po-77928015f2a865d69432b160c326cabf2e7a9bf6.zip
[fix] default ISO value was triggering an error if there was no EXIF data.
-rw-r--r--src/photo.add.2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/photo.add.2.php b/src/photo.add.2.php
index c3eac43..d848ff9 100644
--- a/src/photo.add.2.php
+++ b/src/photo.add.2.php
@@ -19,6 +19,7 @@
include_once "include/config.php";
include_once "include/import.php";
+include_once "include/exif.php";
include_once "include/common.php";
include_once "include/site.php";
@@ -105,7 +106,7 @@ function load_default_image_data_values($default_folder) {
"scan_resolution" => pg_escape_string($_REQUEST['scan_resolution']),
"scan_bitdepth" => pg_escape_string($_REQUEST['scan_bitdepth']),
"scan_multiscan" => pg_escape_string($_REQUEST['scan_multiscan']),
- "iso_override" => pg_escape_string($_REQUEST['iso_override']),
+ "iso_override" => pg_escape_string(convert_exif_iso($_REQUEST['iso_override'])),
"import_metadata_order" => $_REQUEST['import_metadata_order'],
"latitude" => pg_escape_string(parse_latitude($_REQUEST['latitude'])),
"longitude" => pg_escape_string(parse_latitude($_REQUEST['longitude'])),