index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-12-07 10:50:11 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-12-07 10:50:11 +0100 |
commit | f4ca5a658696aaaec035b626653473c44f4de5d5 (patch) | |
tree | 32bd8f7b28832ee81494197dad3ad2c53cd5c635 /lib/helper.php | |
parent | 387dad0f23138c8ee375bb9914299276f5f295ad (diff) |
-rw-r--r-- | lib/helper.php | 2 |
diff --git a/lib/helper.php b/lib/helper.php index e2235fb..bb454f0 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -179,7 +179,7 @@ function site_is_reachable($url) { foreach ($headers as $header) { if (!(strpos($header, 'HTTP/') === 0)) continue; - if ($header[1] == '200') + if (explode(' ', $header)[1] == '200') return true; return false; } |