Dotclear


Ignore:
Timestamp:
09/14/18 12:16:17 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

short notation for array (array() → [])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/csp_report.php

    r3731 r3874  
    9393 
    9494            // Prettify the JSON-formatted data 
    95             $violation = array_merge(array('hash' => $hash), $data['csp-report']); 
     95            $violation = array_merge(['hash' => $hash], $data['csp-report']); 
    9696            $output    = json_encode($violation, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); 
    9797 
Note: See TracChangeset for help on using the changeset viewer.

Sites map