? LICENSE.txt ? clock.make Index: clock.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/clock/clock.module,v retrieving revision 1.9.2.7 diff -u -p -r1.9.2.7 clock.module --- clock.module 11 Apr 2010 09:31:53 -0000 1.9.2.7 +++ clock.module 14 Apr 2010 22:08:55 -0000 @@ -100,7 +100,7 @@ function clock_block($op = 'list', $delt ); // In case of user-configurable timezones show it as an option. - if (variable_get('configurable_timezones', 1) == 1) { + if (variable_get('configurable_timezones', '1') == '1') { $form['timezone']['#description'] = t('Local time zone is the user\'s operating system time, while User time zone is the time zone of the Drupal user.'); $form['timezone']['#options']['2'] = t('User time zone'); } @@ -141,7 +141,7 @@ function clock_block($op = 'list', $delt $date_formats[$date_format->format] = date_format_date(date_now($timezone), $type = 'custom', $format = $date_format->format); } - if ($custom_date_formats_array) { + if (!empty($date_formats)) { $form['date_format']['#options']['custom'] = 'custom' => t('Custom date format'); $form['date_format']['#prefix'] = '
'; $form['date_format']['#suffix'] = '
';