Skip to content
Snippets Groups Projects
Commit 49b1586c authored by Karen Stevenson's avatar Karen Stevenson
Browse files

Critical bugfix, fix possible undefined $item->$tz.

parent 5f68c8b4
No related branches found
Tags 5.x-2.2
No related merge requests found
......@@ -4,6 +4,8 @@ Views Calendar 5.x
Version 5.2 dev
===============
- Critical bugfix, fix possible undefined $item->$tz.
Version 5.2.1
===============
......
......@@ -585,8 +585,8 @@ function calendar_build_nodes(&$view, &$items) {
isset($item->$fromto_alias[1]) ? $item->$fromto_alias[1] : $item->$fromto_alias[0],
);
$db_tz = date_get_timezone_db($tz_handling, $item->$tz_alias);
$to_zone = date_get_timezone($tz_handling, $item->$tz_alias);
$db_tz = date_get_timezone_db($tz_handling, isset($item->$tz_alias) ? $item->$tz_alias : $display_timezone_name);
$to_zone = date_get_timezone($tz_handling, isset($item->$tz_alias) ? $item->$tz_alias : $display_timezone_name);
// NOTE: Now $display_timezone determines how $item is split
// into one entry per day, while $to_zone determines how date is displayed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment