summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-11 16:07:16 +0200
committerBjörn Geiger2011-10-11 16:07:16 +0200
commitfe975c8af373d6f7f1de56b9467052b532300d0c (patch)
tree072b5514fd9a902e488e1e875fb6ea6dbc163a73
parentminor (diff)
downloadpoolctrl-fe975c8af373d6f7f1de56b9467052b532300d0c.tar.gz
poolctrl-fe975c8af373d6f7f1de56b9467052b532300d0c.tar.xz
poolctrl-fe975c8af373d6f7f1de56b9467052b532300d0c.zip
kleine Korrektur
-rwxr-xr-xapplication/controllers/EventController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 86c8eb7..2dae036 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -1526,7 +1526,7 @@ class EventController extends Zend_Controller_Action
$boot = false;
$shutdown = false;
$runningEvents = $this->eventMapper->findBy(array('pbs_poolID' => $event->getPbs_PoolID(), 'running' => 1));
- if(count($runningEvents) > 0) {
+ if(count($runningEvents) > 1) {
$updatePeriod = $this->config['event']['updatePeriod'];
$newStart = date('Y-m-d H:i:s', strtotime($event->getStart()) + $updatePeriod * 60);
$event->setStart($newStart);