Skip to content

Commit

Permalink
Fix PHP 8.4 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Feb 19, 2025
1 parent 4cd07c8 commit 52d9be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Website/DirectoryProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getDirectoryItems(): array

$directoryItems = [];
if (($handle = fopen($filename, "r")) !== FALSE) {
while (($item = fgetcsv($handle, 1000, ",")) !== false) {
while (($item = fgetcsv($handle, 1000, ",", "\"", "\\")) !== false) {
if (empty($item[0]) || $item[0] === 'name') {
continue;
}
Expand Down Expand Up @@ -111,4 +111,4 @@ private function getTitleFromFilename(string $filename): string

return 'No title found';
}
}
}

0 comments on commit 52d9be2

Please sign in to comment.