Fixes: Undefined variable $config

- Many thanks for reporting to Laborix
This commit is contained in:
Frank Hochmuth 2023-12-26 18:13:36 +01:00 committed by GitHub
parent d22fb42e37
commit f9cc9ad0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@
function generate_calendar($year, $month, $days = array(), $day_name_length = 3, $month_href = NULL, $first_day = 0, $pn = array()) { function generate_calendar($year, $month, $days = array(), $day_name_length = 3, $month_href = NULL, $first_day = 0, $pn = array()) {
global $fp_config; global $fp_config;
$characterset = $config ['charset']; $characterset = $fp_config ['general'] ['charset'];
$first_of_month = gmmktime(0, 0, 0, $month, 1, $year); $first_of_month = gmmktime(0, 0, 0, $month, 1, $year);
// remember that mktime will automatically correct if invalid dates are entered // remember that mktime will automatically correct if invalid dates are entered