diff options
author | Arne Hamann <git@arne.email> | 2022-08-04 16:25:26 +0300 |
---|---|---|
committer | Arne Hamann <git@arne.email> | 2022-08-04 16:56:11 +0300 |
commit | 0ba59b0df9d53ad975e43dff547e4b63d6cfa952 (patch) | |
tree | c868b65371006e96f2129ea0db5cc70b0e202183 /lib | |
parent | f682b72f9d8c6220347d8ab26a06d2a9f35e6a38 (diff) |
Test Photos with zero Islandtest/invalidateZeroIsland
Signed-off-by: Arne Hamann <git@arne.email>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Helper/ExifGeoData.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Helper/ExifGeoData.php b/lib/Helper/ExifGeoData.php index d45f4270..77393c75 100644 --- a/lib/Helper/ExifGeoData.php +++ b/lib/Helper/ExifGeoData.php @@ -212,10 +212,11 @@ class ExifGeoData $this->parse(); } - /** - * @param false $invalidate_zero_iland - * @throws ExifDataException - */ + /** + * @param false $invalidate_zero_iland + * @throws ExifDataInvalidException + * @throws ExifDataNoLocationException + */ public function validate( $invalidate_zero_iland = false ) { if (!$this->exif_data) { @@ -229,6 +230,8 @@ class ExifGeoData throw new ExifDataNoLocationException('Latitude and/or Longitude are missing from exif data', 1); } if( $invalidate_zero_iland && $this->isZeroIsland() ){ + $this->latitude = null; + $this->longitude = null; throw new ExifDataNoLocationException('Zero island is not valid', 2); } } |