summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Stevenson2011-12-28 16:57:34 (GMT)
committer Karen Stevenson2011-12-28 16:57:34 (GMT)
commit58422d7ee67683d0c101b586e98375f7d11b72e0 (patch)
treed2641a1501a40756455d211b8bcdb9c10330d5e6
parentc1e4ce1c23b90eadb4e05338dc1363ba39dd3bbf (diff)
Fix another edge case, date handlers that Date Views knows nothing about.
-rw-r--r--includes/calendar_plugin_row_node.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/calendar_plugin_row_node.inc b/includes/calendar_plugin_row_node.inc
index eadf482..3f0baf7 100644
--- a/includes/calendar_plugin_row_node.inc
+++ b/includes/calendar_plugin_row_node.inc
@@ -244,6 +244,12 @@ class calendar_plugin_row_node extends views_plugin_row {
// otherwise we are using the simple date field argument handler.
if ($handler->definition['handler'] != 'date_views_argument_handler') {
$alias = $handler->table_alias . '.' . $handler->field;
+
+ // Make sure this is not some unexpected field that happens to use the date handler
+ // that we can't process (i.e. node.changed_year is not available in Date Views fields).
+ if (!array_key_exists($alias, $data)) {
+ continue;
+ }
$info = $data[$alias];
$field_name = str_replace(array('_value2', '_value'), '', $info['real_field_name']);
$date_fields[$field_name] = $info;