Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/10/2020 07:44:46 PM (4 months 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-includes/deprecated.php

    r6206 r7115  
    547547function bb_convert_path_base( $path, $from_base, $to_base ) {
    548548    bb_log_deprecated('function', __FUNCTION__, 'no alternative');
    549     $last_char = $path{strlen($path)-1};
     549    $last_char = $path[strlen($path)-1];
    550550    if ( '/' != $last_char && '\\' != $last_char )
    551551        $last_char = '';
Note: See TracChangeset for help on using the changeset viewer.