diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/widgets.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php index 402a1fb85..cf73f664c 100644 --- a/engine/lib/widgets.php +++ b/engine/lib/widgets.php @@ -35,10 +35,10 @@ function elgg_get_widgets($user_guid, $context) { $sorted_widgets = array(); foreach ($widgets as $widget) { - if (!isset($sorted_widgets[$widget->column])) { - $sorted_widgets[$widget->column] = array(); + if (!isset($sorted_widgets[(int)$widget->column])) { + $sorted_widgets[(int)$widget->column] = array(); } - $sorted_widgets[$widget->column][$widget->order] = $widget; + $sorted_widgets[(int)$widget->column][$widget->order] = $widget; } foreach ($sorted_widgets as $col => $widgets) { |