Elgg/Elgg — pull request #126 by jdalsem (2011-12-29 12:01:09+00:00)
Title: Fixes 2 bugs with moving of widgets

- moving a widget to the bottom (rank starts at zero, but count of array starts at 1)
- moving widgets with hidden widgets (because a plugin was disabled, but widget objects still exist)

The last fix is still not completely good as the function elgg_is_widget_type is not strict. It only checks if a handler exists, not if it is a valid widget type for the current context.