summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/SessionController.php
diff options
context:
space:
mode:
authormichael pereira2011-04-20 18:49:49 +0200
committermichael pereira2011-04-20 18:49:49 +0200
commitcc3660add480ac1dc217d7f853b325db7d6ec7d0 (patch)
tree8056c87777d806c613a607c3f479ce07475b5db6 /application/modules/user/controllers/SessionController.php
parentAPI + Fixes (diff)
parentUrl für Config gekürzt (diff)
downloadpbs2-cc3660add480ac1dc217d7f853b325db7d6ec7d0.tar.gz
pbs2-cc3660add480ac1dc217d7f853b325db7d6ec7d0.tar.xz
pbs2-cc3660add480ac1dc217d7f853b325db7d6ec7d0.zip
merges
Diffstat (limited to 'application/modules/user/controllers/SessionController.php')
-rw-r--r--application/modules/user/controllers/SessionController.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/application/modules/user/controllers/SessionController.php b/application/modules/user/controllers/SessionController.php
index 88f73f4..91b6dbd 100644
--- a/application/modules/user/controllers/SessionController.php
+++ b/application/modules/user/controllers/SessionController.php
@@ -59,7 +59,7 @@ class User_SessionController extends Zend_Controller_Action
$bm = $bootmenuentriesMapper->find($session->getBootmenuentryID());
if($bm != null)
$session->setBootmenuentryID("[".$session->getBootmenuentryID()."] ".$bm->getTitle());
-
+
}
if($session->getBootisoID() != ''){
@@ -80,7 +80,7 @@ class User_SessionController extends Zend_Controller_Action
}
}
// Sort after date/id
- usort($mySessions, sortFunc);
+ usort($mySessions, 'sortFunc');
// Search
$search = $this->_request->getParam('search');
@@ -92,7 +92,7 @@ class User_SessionController extends Zend_Controller_Action
$mySessions = $mySearch->search($mySessions);
}
$this->view->searchform = $mySearch->searchForm();
-
+
// Pagination
$pagination = new Pbs_Pagination();
$pagination->setPerPage(10);
@@ -113,8 +113,7 @@ class User_SessionController extends Zend_Controller_Action
}
-
function sortFunc($func_a, $func_b) {
if($func_a->getID() == $func_b->getID()) return 0;
return ($func_a->getID() < $func_b->getID()) ? 1 : -1;
-} \ No newline at end of file
+}