Code
- Subs-Calendar.php ➔ getBirthdayRange()
- Subs-Calendar.php ➔ getEventRange()
- Subs-Calendar.php ➔ getHolidayRange()
- Subs-Calendar.php ➔ canLinkEvent()
- Subs-Calendar.php ➔ getTodayInfo()
- Subs-Calendar.php ➔ getCalendarGrid()
- Subs-Calendar.php ➔ getCalendarWeek()
- Subs-Calendar.php ➔ getCalendarList()
- Subs-Calendar.php ➔ cache_getOffsetIndependentEvents()
- Subs-Calendar.php ➔ cache_getRecentEvents()
- Subs-Calendar.php ➔ validateEventPost()
- Subs-Calendar.php ➔ getEventPoster()
- Subs-Calendar.php ➔ insertEvent()
- Subs-Calendar.php ➔ modifyEvent()
- Subs-Calendar.php ➔ removeEvent()
- Subs-Calendar.php ➔ getEventProperties()
- Subs-Calendar.php ➔ getNewEventDatetimes()
- Subs-Calendar.php ➔ setEventStartEnd()
- Subs-Calendar.php ➔ buildEventDatetimes()
- Subs-Calendar.php ➔ getUserTimezone()
- Subs-Calendar.php ➔ list_getHolidays()
- Subs-Calendar.php ➔ list_getNumHolidays()
- Subs-Calendar.php ➔ removeHolidays()

Loading history...
If you define a variable conditionally, it can happen that it is not defined for all execution paths.
Let’s take a look at an example:
In the above example, the variable $x is defined if you pass “foo” or “bar” as argument for $a. However, since the switch statement has no default case statement, if you pass any other value, the variable $x would be undefined.
Available Fixes
Check for existence of the variable explicitly:
Define a default value for the variable:
Add a value for the missing path: