Commit d5e16eaa authored by generalredneck's avatar generalredneck

[#2133557] Fixing parsing error.

Forgot to finish what was started. Was separating out the string so that
it would be easier to debug in the future.
parent 1dc5cbb7
......@@ -64,7 +64,7 @@ function views_natural_sort_store_multiple(array $index_entries) {
}
function views_natural_sort_store($index_entry) {
//This should take a formatted object and store it into the views_natural_sort table.
$string =
$string = views_natural_sort_encode($index_entry);
return db_merge('views_natural_sort')
->key(array(
'eid' => $index_entry['eid'],
......@@ -77,7 +77,7 @@ function views_natural_sort_store($index_entry) {
'entity_type' => $index_entry['entity_type'],
'field' => $index_entry['field'],
'delta' => $index_entry['delta'],
'content' => substr(views_natural_sort_encode($index_entry), 0, 255),
'content' => substr($string, 0, 255),
))
->execute();
}
......
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