diff --git a/workflow/engine/methods/reportTables/reportTables_Ajax.php b/workflow/engine/methods/reportTables/reportTables_Ajax.php index 79d5df71f..fb09bff91 100644 --- a/workflow/engine/methods/reportTables/reportTables_Ajax.php +++ b/workflow/engine/methods/reportTables/reportTables_Ajax.php @@ -346,7 +346,9 @@ function to_camel_case ($str, $capitalise_first_char = true) if ($capitalise_first_char) { $str[0] = strtoupper( $str[0] ); } - $func = create_function( '$c', 'return strtoupper($c[1]);' ); + $func = function ($c) { + return strtoupper($c[1]); + }; return preg_replace_callback( '/_([a-z])/', $func, $str ); }