From e938614f0174e8cf6bfc78793e23e3362bc868ee Mon Sep 17 00:00:00 2001 From: max-m Date: Sat, 10 Dec 2011 17:32:42 +0100 Subject: [PATCH] Fixed TimeIntervalOptionType --- file/lib/system/option/TimeIntervalOptionType.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/lib/system/option/TimeIntervalOptionType.class.php b/file/lib/system/option/TimeIntervalOptionType.class.php index 2178083..1fa6bb1 100644 --- a/file/lib/system/option/TimeIntervalOptionType.class.php +++ b/file/lib/system/option/TimeIntervalOptionType.class.php @@ -24,8 +24,8 @@ public function getData(\wcf\data\option\Option $option, $newValue) { public function getFormElement(\wcf\data\option\Option $option, $value) { $tmp = (int) ($value / 60); if ($value % 60 != 0) { - $tmp .= ','.($tmp % 60).'s'; + $tmp .= ','.($value % 60).'s'; } - parent::getFormElement($option, $tmp); + return parent::getFormElement($option, $tmp); } }