]> git.pld-linux.org Git - packages/dokuwiki-plugin-icalevents.git/blame - reset-error.patch
- reset error state when fetching next calendar
[packages/dokuwiki-plugin-icalevents.git] / reset-error.patch
CommitLineData
51058ef4
ER
1--- iCalEvents/syntax.php~ 2010-12-05 22:32:32.000000000 +0200
2+++ iCalEvents/syntax.php 2010-12-05 22:32:57.535271298 +0200
3@@ -132,7 +132,10 @@
4 */
5 function _parseIcs($url, $from, $previewSec) {
6 global $conf;
7-
8+
9+ // must reset error in case we have multiple calendars on page
10+ $this->error = false;
11+
12 $http = new DokuHTTPClient();
13 if (!$http->get($url)) {
14 $this->error = "Could not get '$url': ".$http->status;
This page took 0.048108 seconds and 4 git commands to generate.