From: Andrew Engelbrecht Date: Thu, 17 Mar 2022 23:43:53 +0000 (-0400) Subject: corrected description field input X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=881159e21e25d244e002b12d02d5a9beeee4b659;p=lp-csv-to-ics.git corrected description field input --- diff --git a/generate-ics b/generate-ics index 375dbb9..a9858c0 100755 --- a/generate-ics +++ b/generate-ics @@ -43,12 +43,13 @@ foreach ($csv as $linenum => $line) { throw new Exception("Invalid times when hackishly converting to UTC: " . $start_time . " - " . $end_time); } + // generate the event $ics = new ICS(array( 'location' => $line[3], 'description' => $line[2], 'dtstart' => $date . "T" . $start_time . "Z", 'dtend' => $date . "T" . $end_time . "Z", - 'summary' => $line[4], + 'summary' => $line[7] ? $line[7] : $line[2], 'url' => str_replace("http:", "https:", $line[8]), ));