Ignore:
Timestamp:
Nov 14, 2020 4:50:42 PM (3 years ago)
Author:
anonymous
Message:

Fix 'Array and string offset access syntax with curly braces is deprecated'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Validator.inc.php

    r724 r737  
    340340        // The part after the @.
    341341        // If domain is an IP [XXX.XXX.XXX.XXX] strip off the brackets.
    342         $domain = $e_parts[3]{0} == '[' ? mb_substr($e_parts[3], 1, -1) : $e_parts[3];
     342        $domain = $e_parts[3][0] == '[' ? mb_substr($e_parts[3], 1, -1) : $e_parts[3];
    343343
    344344        // Test length.
Note: See TracChangeset for help on using the changeset viewer.