Skip to content

Commit baba59c

Browse files
committed
Remove use of curly brackets for string offsets
This causes a fatal error on PHP 8.
1 parent 6104f56 commit baba59c

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)