diff options
author | Erich Eckner <git@eckner.net> | 2018-06-19 15:42:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-19 15:42:58 +0200 |
commit | 1e8cfa2306848879b4fa4b39fb60e80389d3d808 (patch) | |
tree | 6a93c8ec478380996fa351a67265316bc87746ca /packages/pkginfo.php | |
parent | 89e85b2714f99aeaae0d0a43595f80fbed0a845e (diff) | |
download | archweb32-1e8cfa2306848879b4fa4b39fb60e80389d3d808.tar.xz |
packages/pkginfo.php: check for array
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r-- | packages/pkginfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |