From f6d580ac95937df48bcc322032469828b9cc43e6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 21 Jan 2019 11:29:41 +0100 Subject: packages/pkginfo.php: parse dependencies from json correctly --- packages/pkginfo.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages') diff --git a/packages/pkginfo.php b/packages/pkginfo.php index 83ea3bb..d495cf0 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -237,6 +237,8 @@ require_once BASE . "/lib/style.php"; $dep_it = preg_replace("/[<=>].*$/","",$dep_it); if (array_key_exists("Depends On",$json_content)) $js_dep = preg_replace("/[<=>].*$/","",$json_content["Depends On"]); + elseif (array_key_exists("Requires",$json_content)) + $js_dep = preg_replace("/[<=>].*$/","",$json_content["Requires"]); else $js_dep = array(); if (!is_array($js_dep)) -- cgit v1.2.3-70-g09d2