Commit 64364a84 authored by Alvaro Hurtado's avatar Alvaro Hurtado
Browse files

Issue #3311890 by gxleano,alvar0hurtad0: Fatal error on Site entity list

parent 49890d57
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -104,6 +104,11 @@ class CheckAvailabilityService implements CheckAvailabilityInterface {

    $stream = stream_context_create(["ssl" => ["capture_peer_cert" => TRUE]]);
    $read = fopen($url, "rb", FALSE, $stream);

    if (!$read) {
      return FALSE;
    }

    $params = stream_context_get_params($read);

    // Check that SSL certificate is not null