From b495fdf9b50d2295e97579fbaa8d766b8332fa6b Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Wed, 17 Jun 2020 17:04:45 -0700 Subject: [PATCH] Update template.php --- template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;