Permalink
Browse files

Added a minimal safeguard against summed_field_names containing nonex…

…istent fields
  • Loading branch information...
1 parent 5f5e8c6 commit f5985228b309902014c8b48eb578ed76fa73f170 @ahtih committed Apr 25, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 geoclustering.module
View
@@ -366,8 +366,10 @@ function geoclustering_get_summed_fields_info(&$params)
$params->summed_field_names : array()) as $field) {
$dbinfo=content_database_info(content_fields($field));
- $colinfo=array_pop($dbinfo['columns']);
- $retval[]=array($dbinfo['table'],$colinfo['column']);
+ if (!empty($dbinfo['columns'])) {
+ $colinfo=array_pop($dbinfo['columns']);
+ $retval[]=array($dbinfo['table'],$colinfo['column']);
+ }
}
return $retval;

0 comments on commit f598522

Please sign in to comment.