summaryrefslogtreecommitdiffstats
path: root/application/controllers/EventController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-05 14:25:22 +0200
committerBjörn Geiger2011-07-05 14:25:22 +0200
commit97879495b96e6f3f4a31a7990c76f6cf58bb871d (patch)
treefc3b49d7aa07b5dfddf08c9db78387ae3abdc3c0 /application/controllers/EventController.php
parentEventView korrigiert (diff)
downloadpoolctrl-97879495b96e6f3f4a31a7990c76f6cf58bb871d.tar.gz
poolctrl-97879495b96e6f3f4a31a7990c76f6cf58bb871d.tar.xz
poolctrl-97879495b96e6f3f4a31a7990c76f6cf58bb871d.zip
minor
Diffstat (limited to 'application/controllers/EventController.php')
-rw-r--r--application/controllers/EventController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index d5b38c6..4884ee7 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -45,7 +45,7 @@ class EventController extends Zend_Controller_Action
public function indexAction()
{
$events = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID']));
- if(is_array($events)) {
+ if(count($events) > 0) {
$bootOsApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['getbootoss'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', '');
$bootOsXMLString = $bootOsApiResult['http-body'];
$bootOsXML = new SimpleXMLElement($bootOsXMLString);