diff --git a/template.php b/template.php index 1909ac5..30d1bc0 100755 --- a/template.php +++ b/template.php @@ -45,7 +45,7 @@ function megatron_id_safe($string) { // Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores. $string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string)); // If the first character is not a-z, add 'n' in front. - if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware. + if (!ctype_lower($string[0])) { // Don't use ctype_alpha since its locale aware. $string = 'id'. $string; } return $string;