Skip to content

Commit 7d022de

Browse files
committed
clean code
1 parent 591d65c commit 7d022de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/ajax/ajax_events.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ function getEvents($resourceId, $calendarName, $startDate, $endDate, $offset, $o
890890
'calendarId' => md5(getDolUserString($name)),
891891
'src' => getDolUserString($source),
892892
'name' => getDolUserString($name),
893-
'offsettz' => empty($user->conf->$offsettz) ? 0 : $user->conf->$offsettz,
893+
'offsettz' => getDolUserInt($offsettz),
894894
'color' => getDolUserString($color),
895895
//'buggedfile' => (isset($user->conf->buggedfile) ? $user->conf->buggedfile : 0),
896896
];
@@ -906,7 +906,7 @@ function getEvents($resourceId, $calendarName, $startDate, $endDate, $offset, $o
906906
$lastdaytoshow = $endDate / 1000;
907907

908908
// require_once DOL_DOCUMENT_ROOT . '/comm/action/class/ical.class.php';
909-
// cache des fichiers ics
909+
// caching ics files
910910
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
911911
dol_include_once('/idreamanewcalendar/lib/ics-parser/src/ICal/ICal.php');
912912
dol_include_once('/idreamanewcalendar/lib/ics-parser/src/ICal/Event.php');

0 commit comments

Comments
 (0)