Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/10/2020 07:44:46 PM (4 years ago)
Author:
xknown
Message:

PHP 7.4 Compat: Don't use curly braces for array/string access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9/bb-admin/export.php

    r1386 r7115  
    4646                $data .= str_repeat("\t", $tabs + 1) . "<meta key='$mk'><![CDATA[$mv]]></meta>\n";
    4747        } else {
    48             if ( '!' == $k{0} ) {
     48            if ( '!' == $k[0] ) {
    4949                $k = substr($k, 1);
    5050                $v = "<![CDATA[$v]]>";
     
    6666    $r = array();
    6767    foreach ( $translate as $prop => $export ) {
    68         if ( '?' == $export{0} ) {
     68        if ( '?' == $export[0] ) {
    6969            $export = substr($export, 1);
    7070            if ( !$data[$prop] ) {
Note: See TracChangeset for help on using the changeset viewer.