commit | 45cce2fb72ad4630220b81440ebca0f9996dd757 | [log] [tgz] |
---|---|---|
author | Wayne Beaton <wayne@eclipse.org> | Wed Oct 17 23:40:35 2012 -0400 |
committer | Wayne Beaton <wayne@eclipse.org> | Wed Oct 17 23:40:35 2012 -0400 |
tree | 62b8070e596a491fa56494795ff1dbf45647f379 | |
parent | f06cb7bcc320a38df0d1a86bef271349b6a26c22 [diff] |
It turns out that = is not the same as ==. Who knew?
diff --git a/commits/repositories.php b/commits/repositories.php index f65fb4b..bd2bc3d 100644 --- a/commits/repositories.php +++ b/commits/repositories.php
@@ -91,7 +91,7 @@ foreach(get_headers($url) as $header) { if (preg_match('/^HTTP.*(\d)\d\d/', $header, $matches)) { // We are happy with 200 or 300 codes. - return $matches[1] == '2' || $matches[1] = '3'; + return $matches[1] == '2' || $matches[1] == '3'; } } return false;