diff options
| author | Horus | 2021-01-14 12:15:03 +0100 |
|---|---|---|
| committer | Horus | 2021-01-14 12:15:03 +0100 |
| commit | 20ed3c2e6dbc417dc0fede674894457ac6231410 (patch) | |
| tree | 7d3af6abfee17bee4f291c1c0d597c9d690a3439 | |
| parent | 983167172a7995acc86c6bd05ea4c268845f1ffe (diff) | |
| download | zeitumstellung-20ed3c2e6dbc417dc0fede674894457ac6231410.tar.gz | |
Fix php warning.
| -rw-r--r-- | composer.json | 2 | ||||
| -rw-r--r-- | inc/iCalFeed.php (renamed from inc/ical.php) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/composer.json b/composer.json index b690b8d..0dc1bd2 100644 --- a/composer.json +++ b/composer.json @@ -4,6 +4,6 @@ "nesbot/carbon": "^2.43" }, "autoload": { - "files": [ "inc/config.php", "inc/Zeitumstellung.php", "inc/ical.php"] + "files": [ "inc/config.php", "inc/Zeitumstellung.php", "inc/iCalFeed.php"] } } diff --git a/inc/ical.php b/inc/iCalFeed.php index 7cc30e9..fc30e15 100644 --- a/inc/ical.php +++ b/inc/iCalFeed.php @@ -31,7 +31,7 @@ function iCalFeed() { header('Content-Type: text/calendar; charset=utf-8'); - if ( '0' != $_REQUEST['download'] ) { + if ( isset($_REQUEST['download']) && '0' != $_REQUEST['download'] ) { header('Content-Disposition: attachment; filename="zeitumstellung.ics"'); } |
