mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Fixed TimeIntervalOptionType
This commit is contained in:
parent
c062a7f956
commit
e938614f01
@ -24,8 +24,8 @@ public function getData(\wcf\data\option\Option $option, $newValue) {
|
|||||||
public function getFormElement(\wcf\data\option\Option $option, $value) {
|
public function getFormElement(\wcf\data\option\Option $option, $value) {
|
||||||
$tmp = (int) ($value / 60);
|
$tmp = (int) ($value / 60);
|
||||||
if ($value % 60 != 0) {
|
if ($value % 60 != 0) {
|
||||||
$tmp .= ','.($tmp % 60).'s';
|
$tmp .= ','.($value % 60).'s';
|
||||||
}
|
}
|
||||||
parent::getFormElement($option, $tmp);
|
return parent::getFormElement($option, $tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user