]> git.pld-linux.org Git - packages/dokuwiki-plugin-icalevents.git/blob - reset-error.patch
- reset error state when fetching next calendar
[packages/dokuwiki-plugin-icalevents.git] / reset-error.patch
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.094077 seconds and 3 git commands to generate.