summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filefield_meta/includes/filefield_meta_handler_field_duration.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/filefield_meta/includes/filefield_meta_handler_field_duration.inc b/filefield_meta/includes/filefield_meta_handler_field_duration.inc
index 91ce127..7a7f097 100644
--- a/filefield_meta/includes/filefield_meta_handler_field_duration.inc
+++ b/filefield_meta/includes/filefield_meta_handler_field_duration.inc
@@ -49,16 +49,16 @@ class filefield_meta_handler_field_duration extends views_handler_field_numeric
switch ($this->options['format']) {
case 'hours':
- $value = date('g', (int) $value);
+ $output = date('g', (int) $value);
break;
case 'minutes':
- $value = date('i', (int) $value);
+ $output = date('i', (int) $value);
break;
case 'seconds':
- $value = date('s', (int) $value);
+ $output = date('s', (int) $value);
break;
case 'total':
- $value = $value;
+ $output = check_plain($value);
break;
default:
$output = theme('filefield_meta_duration', $value);