// do not require views to explicitly pass in the offset
if (!$offset = (int) $offset) {
- $offset = get_input('offset', 0);
+ $offset = sanitise_int(get_input('offset', 0));
}
$context = get_context();
register_elgg_event_handler('boot', 'system', 'elgg_boot', 1000);
register_plugin_hook('unit_test', 'system', 'elgg_api_test');
-register_elgg_event_handler('init', 'system', 'add_custom_menu_items', 1000);
\ No newline at end of file
+register_elgg_event_handler('init', 'system', 'add_custom_menu_items', 1000);