diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-12 22:57:04 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-12 22:57:04 +0100 |
commit | 6a3086881421478d47440fed8ea59041cf315289 (patch) | |
tree | c4b50afbbb0e48a882aeb0b2ec7c81ced4fd3651 /includes | |
parent | b3df2288456eb47e108230fcb486bcf47a5c34f5 (diff) |
#77 bugblue-layout fix
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/user_shifts.php | 3 |
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"; |