Commit 6e3bd814 authored by generalredneck's avatar generalredneck

Fixing Strict issue array issue introduced with #2707123

 Only variables should be passed by reference in views_natural_sort_views_natural_sort_get_rebuild_data()  
parent 73cbacac
......@@ -93,8 +93,8 @@ function views_natural_sort_views_natural_sort_get_rebuild_data($entry_type){
$data = array();
foreach ($entity_ids as $entity_id) {
$entity = reset(entity_load($entry_type['entity_type'], array($entity_id)));
$results = entity_load($entry_type['entity_type'], array($entity_id));
$entity = reset($results);
$data[] = array(
'eid' => $entity_id,
'entity_type' => $entry_type['entity_type'],
......
......@@ -79,7 +79,8 @@ function views_natural_sort_text_field_views_natural_sort_get_rebuild_data($entr
}
foreach ($entity_ids as $entity_id) {
$entity = reset(entity_load($entry_type['entity_type'], array($entity_id)));
$results = entity_load($entry_type['entity_type'], array($entity_id));
$entity = reset($results);
$entries = _views_natural_sort_text_field_to_vns($entry_type['entity_type'], $entity, $field);
if (!empty($entries)) {
$data = array_merge($data, $entries);
......
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