Ignore:
Timestamp:
Jul 3, 2024 1:26:01 AM (3 months ago)
Author:
anonymous
Message:

Minor fixes

File:
1 edited

Legend:

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

    r814 r816  
    18291829{
    18301830    $context = stream_context_create(['http' => ['method' => $method]]);
    1831     $headers = get_headers($url, 1, $context);
     1831    // Silence warning: PHP Warning:  get_headers() expects at most 2 parameters, 3 given
     1832    $headers = @get_headers($url, 1, $context);
    18321833    $app =& \App::getInstance();
    18331834    $app->logMsg(sprintf('HTTP response headers for %s %s: %s', strtoupper($method), $url, getDump($headers, true, SC_DUMP_JSON)), LOG_DEBUG, __FILE__, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.