#77 bugblue-layout fix

This commit is contained in:
Philip Häusler 2012-12-12 22:57:04 +01:00
parent b3df228845
commit 6a30868814
1 changed files with 2 additions and 1 deletions

View File

@ -365,6 +365,7 @@ function view_user_shifts() {
foreach($myrooms as $room) { foreach($myrooms as $room) {
$rid=$room["id"]; $rid=$room["id"];
$colspan=1; $colspan=1;
if(is_array($block[$rid]))
foreach($block[$rid] as $max) if($max>$colspan) $colspan=$max; foreach($block[$rid] as $max) if($max>$colspan) $colspan=$max;
for($i=0;$i<$maxshow;$i++) for($i=0;$i<$maxshow;$i++)
$todo[$rid][$i]=$colspan; $todo[$rid][$i]=$colspan;