summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-11 13:14:11 +0200
committerBjörn Geiger2011-10-11 13:14:11 +0200
commitc320c0ec7b4225149ada0a12b3b16c87d007c761 (patch)
treea5dc03894228fbcfe5efd081a4a1c9061bf36ffe /application
parentweitere Korrektur (diff)
downloadpoolctrl-c320c0ec7b4225149ada0a12b3b16c87d007c761.tar.gz
poolctrl-c320c0ec7b4225149ada0a12b3b16c87d007c761.tar.xz
poolctrl-c320c0ec7b4225149ada0a12b3b16c87d007c761.zip
weitere Korrektur
Diffstat (limited to 'application')
-rwxr-xr-xapplication/controllers/EventController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 76e7156..8c96327 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -478,8 +478,10 @@ class EventController extends Zend_Controller_Action
unset($filterApiResult);
}
if(isset($diff['start']) || isset($diff['end']) || isset($diff['pbs_poolID'])) {
- $filterApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['deletefilter'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', "filterid=" . $oldEvent->getPbs_filterID());
- unset($filterApiResult);
+ if(isset($params['wdh']) || !$oldEvent->getRepeat()) {
+ $filterApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['deletefilter'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', "filterid=" . $oldEvent->getPbs_filterID());
+ unset($filterApiResult);
+ }
$filterquery = "bootmenuID=" . $event->getPbs_bootmenuID() . "&title=Poolctrl-Filter for " . $event->getTitle() . "&description=This Filter was automatically created by the Poolctrl for Event " . $event->getTitle() . "&created= " . time() . "&priority=100";
$filterApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['addfilter'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', $filterquery);
$filterXMLString = $filterApiResult['http-body'];