File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ public function mapRawData(array $data)
163163
164164 // add GPS coordinates, if available
165165 if (count ($ gpsData ) === 2 && $ gpsData ['lat ' ] !== false && $ gpsData ['lon ' ] !== false ) {
166- $ latitudeRef = isset ($ data ['GPSLatitudeRef ' ][0 ]) ? $ data ['GPSLatitudeRef ' ][0 ] : null ;
167- $ longitudeRef = isset ($ data ['GPSLongitudeRef ' ][0 ]) ? $ data ['GPSLongitudeRef ' ][0 ] : null ;
166+ $ latitudeRef = empty ($ data ['GPSLatitudeRef ' ][0 ]) ? ' N ' : $ data ['GPSLatitudeRef ' ][0 ];
167+ $ longitudeRef = empty ($ data ['GPSLongitudeRef ' ][0 ]) ? ' E ' : $ data ['GPSLongitudeRef ' ][0 ];
168168
169169 $ gpsLocation = sprintf (
170170 '%s,%s ' ,
Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ public function mapRawData(array $data)
181181
182182 // add GPS coordinates, if available
183183 if (count ($ gpsData ) === 2 ) {
184- $ latitudeRef = isset ($ data ['GPSLatitudeRef ' ][0 ]) ? $ data ['GPSLatitudeRef ' ][0 ] : null ;
185- $ longitudeRef = isset ($ data ['GPSLongitudeRef ' ][0 ]) ? $ data ['GPSLongitudeRef ' ][0 ] : null ;
184+ $ latitudeRef = empty ($ data ['GPSLatitudeRef ' ][0 ]) ? ' N ' : $ data ['GPSLatitudeRef ' ][0 ];
185+ $ longitudeRef = empty ($ data ['GPSLongitudeRef ' ][0 ]) ? ' E ' : $ data ['GPSLongitudeRef ' ][0 ];
186186
187187 $ gpsLocation = sprintf (
188188 '%s,%s ' ,
You can’t perform that action at this time.
0 commit comments