diff options
author | cash <cash.costello@gmail.com> | 2011-11-05 19:15:42 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-05 19:15:42 -0400 |
commit | 61d24f4b7b4fd4d5e960593a25a0d96b11891ff0 (patch) | |
tree | af0128a6f7a99aa92c807bcfad03341c08fd35a6 /views/default/page/layouts/widgets.php | |
parent | eeade2d2716826b419c1ca67a62a102017c31b02 (diff) | |
download | elgg-61d24f4b7b4fd4d5e960593a25a0d96b11891ff0.tar.gz elgg-61d24f4b7b4fd4d5e960593a25a0d96b11891ff0.tar.bz2 |
Fixes #4024 fixed a lot of notices - enough for this release - found a few bugs
Diffstat (limited to 'views/default/page/layouts/widgets.php')
-rw-r--r-- | views/default/page/layouts/widgets.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/views/default/page/layouts/widgets.php b/views/default/page/layouts/widgets.php index b2c54e854..e3819cc20 100644 --- a/views/default/page/layouts/widgets.php +++ b/views/default/page/layouts/widgets.php @@ -39,10 +39,14 @@ echo $vars['content']; $widget_class = "elgg-col-1of{$num_columns}"; for ($column_index = 1; $column_index <= $num_columns; $column_index++) { - $column_widgets = $widgets[$column_index]; + if (isset($widgets[$column_index])) { + $column_widgets = $widgets[$column_index]; + } else { + $column_widgets = array(); + } echo "<div class=\"$widget_class elgg-widgets\" id=\"elgg-widget-col-$column_index\">"; - if (is_array($column_widgets) && sizeof($column_widgets) > 0) { + if (sizeof($column_widgets) > 0) { foreach ($column_widgets as $widget) { if (array_key_exists($widget->handler, $widget_types)) { echo elgg_view_entity($widget, array('show_access' => $show_access)); |