Commit 32169222 authored by generalredneck's avatar generalredneck

Issue #2711909 by lionguard: Notice: Undefined index: entries at end of index Rebuild process

parent d0af9cee
......@@ -157,6 +157,9 @@ 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