summaryrefslogtreecommitdiff
path: root/includes/pages/user_shifts.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-04-17 14:11:40 +0200
committerPhilip Häusler <msquare@notrademark.de>2012-04-17 14:11:40 +0200
commit046c9e9cafbb9e4b73f823be62ab23b47d3ace09 (patch)
treeac0a23781b75575b5849445edeac2201049f12f6 /includes/pages/user_shifts.php
parentccdba91c57cabebe02b132d5ef49169245bb8b2b (diff)
fix some php warnings
Diffstat (limited to 'includes/pages/user_shifts.php')
-rw-r--r--includes/pages/user_shifts.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index b7b504af..f52702e1 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -282,6 +282,8 @@ function view_user_shifts() {
$_SESSION['user_shifts']['days'] = array (
date('Y-m-d')
);
+ if (!isset ($_SESSION['user_shifts']['rooms']) || count($_SESSION['user_shifts']['rooms']) == 0)
+ $_SESSION['user_shifts']['rooms'] = array(0);
$shifts = sql_select("SELECT `Shifts`.*, `Room`.`Name` as `room_name` FROM `Shifts` JOIN `Room` USING (`RID`)
WHERE `Shifts`.`RID` IN (" . implode(',', $_SESSION['user_shifts']['rooms']) . ")