Changeset 117634 in spip-zone


Ignore:
Timestamp:
Aug 25, 2019, 7:42:15 PM (6 months ago)
Author:
marcimat@…
Message:

Compat PHP 7.4, Deprecated: Array and string offset access syntax with curly braces
(Francky)

Location:
_core_/plugins/svp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/svp/inc/svp_outiller.php

    r116106 r117634  
    198198                if ($matches[1]) {
    199199                        $bornes['min']['valeur'] = trim($matches[1]);
    200                         $bornes['min']['incluse'] = ($intervalle{0} == "[");
     200                        $bornes['min']['incluse'] = ($intervalle[0] == "[");
    201201                }
    202202                if ($matches[2]) {
  • _core_/plugins/svp/svp_fonctions.php

    r116106 r117634  
    4242        $mineure = $regs[1];
    4343        $majeure = preg_replace(',\.999$,', '.*', $regs[2]);
    44         $mineure_inc = $intervalle{0} == "[";
     44        $mineure_inc = $intervalle[0] == "[";
    4545        $majeure_inc = substr($intervalle, -1) == "]";
    4646        if (strlen($mineure)) {
Note: See TracChangeset for help on using the changeset viewer.