summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-12-12 22:57:04 +0100
committerPhilip Häusler <msquare@notrademark.de>2012-12-12 22:57:04 +0100
commit6a3086881421478d47440fed8ea59041cf315289 (patch)
treec4b50afbbb0e48a882aeb0b2ec7c81ced4fd3651 /includes
parentb3df2288456eb47e108230fcb486bcf47a5c34f5 (diff)
#77 bugblue-layout fix
Diffstat (limited to 'includes')
-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";