Commit e13c3cee authored by generalredneck's avatar generalredneck

Fixing the "entities" notice in all cases.

parent 32169222
......@@ -142,6 +142,9 @@ function views_natural_sort_rebuild_index($entry_type, &$context) {
$sandbox = &$context['sandbox'];
// Initialize our context.
if (!isset($context['results']['entries'])) {
$context['results']['entries'] = 0;
}
if (!isset($sandbox['max'])) {
// Hook for modules to implement and return data that views_natural_sort can
// store as an index for that module's entries.
......@@ -157,9 +160,6 @@ function views_natural_sort_rebuild_index($entry_type, &$context) {
return;
}
}
if (!isset($context['results']['entries'])) {
$context['results']['entries'] = 0;
}
$results = array_slice($sandbox['entries'], $sandbox['current'], variable_get('views_natural_sort_rebuild_items_per_batch', '500'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment