Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-23 08:11:39 +0100
committerErich Eckner <git@eckner.net>2018-11-23 08:11:39 +0100
commit06e4f4ba9f0c0c575655478ed783265e7f2dddd0 (patch)
tree382e7b0832663f95eb18e072515bd5233fc21006 /packages/pkginfo.php
parent1d9456946e9025f0faeb97457dfc41ba24eddd10 (diff)
packages/pkginfo.php: use json content if available!
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 84f2569..1dea3ab 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -20,12 +20,11 @@ require_once BASE . "/lib/style.php";
);
if (!isset($json_content["package"])) {
+ //throw_http_error(404, "Package Not Found In Sync Database");
unset($json_content);
$skip_json_checks = true;
- }
- //throw_http_error(404, "Package Not Found In Sync Database");
-
- //$json_content = $json_content["package"];
+ } else
+ $json_content = $json_content["package"];
}
$mysql_result = mysql_run_query(