Permalink
Browse files

Merge pull request #22 from c9s/numformat-fix

Numformat fix -- only run through callback if the value is numeric
  • Loading branch information...
2 parents 3425f7f + e56774c commit 254eb24dcfa763c76c57b472093ebc4b81af2b7d @billf billf committed Apr 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 xhprof_lib/display/xhprof.php
@@ -621,7 +621,7 @@ function print_td_num($num, $fmt_func, $bold=false, $attributes=null) {
$class = get_print_class($num, $bold);
- if (!empty($fmt_func)) {
+ if (!empty($fmt_func) && is_numeric($num) ) {
$num = call_user_func($fmt_func, $num);
}

0 comments on commit 254eb24

Please sign in to comment.