Commit df0a9acf authored by TravisCarden's avatar TravisCarden

Issue #1649190 by chales, TravisCarden: Fixed Eliminate PHP 5.3 dependency.

parent 8812e46f
......@@ -247,5 +247,8 @@ function checklistapi_strtolowercamel($string) {
$string = str_replace('_', ' ', $string);
$string = ucwords($string);
$string = str_replace(' ', '', $string);
return lcfirst($string);
// Lowercase first character. lcfirst($string) would be nicer, but let's not
// create a dependency on PHP 5.3 just for that.
$string[0] = strtolower($string[0]);
return $string;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment