From: Andrew Engelbrecht <andrew@fsf.org> Date: Fri, 18 Mar 2022 14:53:57 +0000 (-0400) Subject: don't serve empty LOCATION fields X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5ab0e5548e999cc2cc3575945a77dd55c0b1bb1a;p=lp-csv-to-ics.git don't serve empty LOCATION fields --- diff --git a/generate-ics b/generate-ics index abaacd0..2b104f0 100755 --- a/generate-ics +++ b/generate-ics @@ -60,7 +60,7 @@ foreach ($csv as $linenum => $line) { $ics = new ICS(array( 'summary' => $line[2], 'description' => $line[7] ? $line[7] : $line[2], - 'location' => $line[3], + 'location' => $line[3] ? $line[3] : "Anywhere", 'dtstart' => $date . "T" . $start_time . "Z", 'dtend' => $date . "T" . $end_time . "Z", 'url' => str_replace("http:", "https:", $line[8]),