Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #22 from c9s/numformat-fix

Numformat fix -- only run through callback if the value is numeric
  • Loading branch information...
commit 254eb24dcfa763c76c57b472093ebc4b81af2b7d 2 parents 3425f7f + e56774c
@billf billf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xhprof_lib/display/xhprof.php
View
2  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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.