diff --git a/SourceGithub/SourceGithub.php b/SourceGithub/SourceGithub.php index f548b31..76d176b 100644 --- a/SourceGithub/SourceGithub.php +++ b/SourceGithub/SourceGithub.php @@ -179,9 +179,8 @@ return; } - $t_json = json_decode( $f_payloaad ); - $t_data = json_decode( $f_payloaad, true ); - $t_reponame = $t_json->repository->name; + $t_data = json_decode( $f_payload, true ); + $t_reponame = $t_data['repository']['name']; $t_repo_table = plugin_table( 'repository', 'Source' );