summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/pages/user_shifts.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 9a48c4e7..5361beba 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -365,7 +365,8 @@ function view_user_shifts() {
foreach($myrooms as $room) {
$rid=$room["id"];
$colspan=1;
- foreach($block[$rid] as $max) if($max>$colspan) $colspan=$max;
+ if(is_array($block[$rid]))
+ foreach($block[$rid] as $max) if($max>$colspan) $colspan=$max;
for($i=0;$i<$maxshow;$i++)
$todo[$rid][$i]=$colspan;
$shifts_table.="<th colspan=\"$colspan\">".$room['name']."</th>\n";