Skip to content

Commit 728166c

Browse files
authored
Merge pull request #63 from ubc-web-services/hotfix
Update template.php
2 parents 4dd9adb + b495fdf commit 728166c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function megatron_id_safe($string) {
4545
// Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.
4646
$string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));
4747
// If the first character is not a-z, add 'n' in front.
48-
if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware.
48+
if (!ctype_lower($string[0])) { // Don't use ctype_alpha since its locale aware.
4949
$string = 'id'. $string;
5050
}
5151
return $string;

0 commit comments

Comments
 (0)