summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-10 15:47:39 +0100
committerErich Eckner <git@eckner.net>2018-12-10 15:47:39 +0100
commit35f48262f96dc618b939f69cc2482dfd55fc0605 (patch)
tree52c92b79bee1a69548034333b31d17e764204ab3
parent654f9a542d64fdc9a5efb3c8ac08cc7553aa69ae (diff)
downloadarchweb32-35f48262f96dc618b939f69cc2482dfd55fc0605.tar.xz
packages/pkginfo.php: add check for empty $json_content
-rw-r--r--packages/pkginfo.php2
1 files changed, 1 insertions, 1 deletions
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;