summaryrefslogtreecommitdiffstats
path: root/library/Pbs/Filter.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Pbs/Filter.php')
-rw-r--r--library/Pbs/Filter.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/Pbs/Filter.php b/library/Pbs/Filter.php
index 8a55f1b..d1b33d7 100644
--- a/library/Pbs/Filter.php
+++ b/library/Pbs/Filter.php
@@ -56,7 +56,9 @@ class Pbs_Filter {
$sessionmapper = new Application_Model_SessionMapper();
$sessionarray = $sessionmapper->findBy(array('alphasessionID' => $_SESSION['alphasessionID']), true);
$session->setOptions($sessionarray[0]);
- $session->setID($sessionarray['sessionID']);
+ if (isset($sessionarray['sessionID'])) {
+ $session->setID($sessionarray['sessionID']);
+ }
if(!isset($userIDsNamespace['membershipID'])) {
$bootisoMapper = new Application_Model_BootIsoMapper();
@@ -394,7 +396,9 @@ class Pbs_Filter {
foreach($result as $e) {
$queryTmp[] = "filterID = '$e'";
}
- $query .= implode(" OR ", $queryTmp);
+ if (!empty($queryTmp)) {
+ $query .= implode(" OR ", $queryTmp);
+ }
$query .= 'ORDER BY priority DESC LIMIT 0,1';
$bootmenuID = 'null';
try {