Skip to content

Commit f9c409e

Browse files
committed
getTracksFromGPX($content): silence libxml internal errors
Signed-off-by: umgfoin <[email protected]>
1 parent 44f3544 commit f9c409e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Service/GeophotoService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ private function loadTimeorderedPointSets(string $userId, $folder = null, bool $
352352
*/
353353
private function getTracksFromGPX($content): array {
354354
$tracks = [];
355+
libxml_use_internal_errors(false);
355356
$gpx = simplexml_load_string($content);
356357
foreach ($gpx->trk as $trk) {
357358
$tracks[] = $trk;

0 commit comments

Comments
 (0)