From 35f48262f96dc618b939f69cc2482dfd55fc0605 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 10 Dec 2018 15:47:39 +0100 Subject: packages/pkginfo.php: add check for empty $json_content --- packages/pkginfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pkginfo.php b/packages/pkginfo.php index 8265bc7..f366624 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -38,7 +38,7 @@ require_once BASE . "/lib/style.php"; true ); - if (!array_key_exists('Name', $json_content)) { + if (!isset($json_content) || !array_key_exists('Name', $json_content)) { //throw_http_error(404, "Package Not Found In Sync Database"); unset($json_content); $skip_json_checks = true; -- cgit v1.2.3-70-g09d2