diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php index 01d6d7edc389a..6b60d6701d47a 100644 --- a/apps/dav/lib/CardDAV/CardDavBackend.php +++ b/apps/dav/lib/CardDAV/CardDavBackend.php @@ -939,11 +939,11 @@ private function readBlob($cardData, &$modified = false) { return $cardData; } - $cardData = explode("\r\n", $cardData); + $cardDataArray = explode("\r\n", $cardData); $cardDataFiltered = []; $removingPhoto = false; - foreach ($cardData as $line) { + foreach ($cardDataArray as $line) { if (strpos($line, 'PHOTO:data:') === 0 && strpos($line, 'PHOTO:data:image/') !== 0) { // Filter out PHOTO data of non-images