Skip to content

Commit 2b2b66a

Browse files
authored
Merge pull request #3 from Wikia/fix-fatal
Remove use of curly brackets for string offsets
2 parents 243faef + baba59c commit 2b2b66a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gwbbcode/gwbbcode.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function skill_name_replace( $reg ) {
224224
$name = html_safe_decode( $name );
225225

226226
// '[[Skill Name]' => no icon
227-
if ( $name{0} == '[' ) {
227+
if ( $name[0] == '[' ) {
228228
$noicon = true;
229229
$name = substr( $name, 1 );
230230
} else {

0 commit comments

Comments
 (0)