From 7a74bf0ae32711ef765618dbbef7b93984594bd0 Mon Sep 17 00:00:00 2001 From: Aaron Ferris <aaron@zoocha.com> Date: Mon, 3 Mar 2025 17:29:45 +0000 Subject: [PATCH] Issue #3064981: have a fallback clock type --- modules/jst_clock/jst_clock.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/jst_clock/jst_clock.module b/modules/jst_clock/jst_clock.module index 5adced0..e1a611e 100644 --- a/modules/jst_clock/jst_clock.module +++ b/modules/jst_clock/jst_clock.module @@ -25,7 +25,10 @@ function jst_clock_jstwidget() { $ret->theme_function = 'jst_clock_show'; $ret->js_name = 'Drupal.jstimer.jst_clock'; - $clock_type = $config->get('jstimer_jst_clock_type'); + $clock_type = 0; + if (!empty($config->get('jstimer_jst_clock_type'))) { + $clock_type = $config->get('jstimer_jst_clock_type'); + } $ret->js_code = <<<JAVASCRIPT_CODE -- GitLab