Skip to content

Commit 0ec730d

Browse files
committed
contribute.jquery.org: Fix handling of missing CLA status
1 parent 5ad12fb commit 0ec730d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

themes/contribute.jquery.org/cla-check.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ function getData() {
3535

3636
$path = "$repo/" . substr( $sha, 0, 2 ) . "/$sha.json";
3737
$data = @file_get_contents( JQUERY_CLA_SERVER_URL . "/$path" );
38+
39+
if ( !$data ) {
40+
return null;
41+
}
42+
3843
$data = json_decode( $data );
3944
$data->repo = $repo;
4045
return $data;

0 commit comments

Comments
 (0)