diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php index d3ebaaf6d..e13271d9c 100644 --- a/include/wochenplan.class.php +++ b/include/wochenplan.class.php @@ -2122,6 +2122,8 @@ class wochenplan extends basis_db $month=mb_substr($row->datum, 5,2); $jahr=mb_substr($row->datum, 0,4); $tag=date("w",mktime(12,0,0,$month,$mtag,$jahr)); + if(!isset($raster[$tag][$row->stunde])) + $raster[$tag][$row->stunde]=new stdClass(); $raster[$tag][$row->stunde]->kollision=true; }