diff --git a/modules/jst_clock/jst_clock.module b/modules/jst_clock/jst_clock.module
index 5adced0b06710318d58d9710a5140c0dfb63d61d..e1a611e8491383ed973a75de4a8ebbab51794399 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