From 06e4f4ba9f0c0c575655478ed783265e7f2dddd0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 23 Nov 2018 08:11:39 +0100 Subject: packages/pkginfo.php: use json content if available! --- packages/pkginfo.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'packages') 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( -- cgit v1.2.3-70-g09d2