don't serve empty LOCATION fields
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 18 Mar 2022 14:53:57 +0000 (10:53 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 18 Mar 2022 14:53:57 +0000 (10:53 -0400)
generate-ics

index abaacd0edb1e7e31f9f095ba56999b8fae16eb06..2b104f05785de826c11f1a1b9f12f1e9a7fb7599 100755 (executable)
@@ -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]),