formatting, add check for empty downloads
This commit is contained in:
parent
89d30091cf
commit
0bfd5986b3
@ -67,5 +67,10 @@ foreach ($pkgs_github_array as $pkg_github) {
|
|||||||
$pkgs_array[] = $pkg;
|
$pkgs_array[] = $pkg;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo json_encode($pkgs_array);
|
$return = [
|
||||||
|
'packages' => $pkgs_array,
|
||||||
|
'empty' => empty($pkgs_downloaded)
|
||||||
|
];
|
||||||
|
|
||||||
|
echo json_encode($return);
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user