pluginsGLPI / timelineticket

Plugin timelineticket for GLPI
https://github.com/pluginsGLPI/timelineticket
GNU Affero General Public License v3.0
20 stars 13 forks source link

fix(core): prevent error on NULL timezone #28

Closed stonebuzz closed 2 years ago

stonebuzz commented 2 years ago

Prevent error on NULL timezone

Because of if / else here which use in both case $configTimezone['timezone']

      if (!empty($configTimezone['timezone']) && !is_null($configTimezone['timezone'])) {
         $baseTimezone = $configTimezone['timezone'];
      } else if (!empty($tz)) {
         $baseTimezone = $configTimezone['timezone'];
      }

image

stonebuzz commented 2 years ago

@tsmr up =)