Commit 866a795c authored by generalredneck's avatar generalredneck

Testing for empty property.

parent d503219d
......@@ -104,7 +104,9 @@ function views_natural_sort_entity_insert($entity, $type) {
return;
}
foreach ($supported_entity_properties[$type] as $property => $property_info) {
views_natural_sort_store(views_natural_sort_entity_to_vns($entity, $type, $property));
if (isset($entity->{$property})) {
views_natural_sort_store(views_natural_sort_entity_to_vns($entity, $type, $property));
}
}
}
......
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