tweaks github webhook processor

This commit is contained in:
silicons
2022-10-20 20:09:50 -07:00
committed by GitHub
parent 2b1f550415
commit 59510a92d4
@@ -186,7 +186,7 @@ function validate_user($payload) {
$querystring .= ($querystring == '' ? '' : '+') . urlencode($key) . ':' . urlencode($value);
$res = github_apisend('https://api.github.com/search/issues?q='.$querystring);
$res = json_decode($res, TRUE);
return $res['total_count'] >= (int)$validation_count;
return (isset($res['total_count']) && $res['total_count'] >= (int)$validation_count);
}