From 6a3086881421478d47440fed8ea59041cf315289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Wed, 12 Dec 2012 22:57:04 +0100 Subject: [PATCH] #77 bugblue-layout fix --- includes/pages/user_shifts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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";