From 1e8cfa2306848879b4fa4b39fb60e80389d3d808 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 19 Jun 2018 15:42:58 +0200 Subject: packages/pkginfo.php: check for array --- packages/pkginfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/pkginfo.php b/packages/pkginfo.php index 1cff9bc..fe1066b 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -132,7 +132,7 @@ $dep_it = array_map("dependency_extract_name", $dep_it); $dep_it = preg_replace("/[<=>].*$/","",$dep_it); $js_dep = preg_replace("/[<=>].*$/","",$json_content["Depends On"]); - if ($js_dep == "None") + if (!is_array($js_dep)) $js_dep = array(); if (!isset($dep_it)) $dep_it = array(); -- cgit v1.2.3-70-g09d2