From 6a3086881421478d47440fed8ea59041cf315289 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 12 Dec 2012 22:57:04 +0100 Subject: #77 bugblue-layout fix --- includes/pages/user_shifts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') 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.="".$room['name']."\n"; -- cgit v1.2.3-54-g00ecf