summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-27 13:23:58 +0200
committerErich Eckner <git@eckner.net>2018-04-27 13:23:58 +0200
commite6571252647d472b59a2aafb6dc580db72d5d12a (patch)
tree5bbed2f36306b039a98bcaf11b872cfaf150013c
parente9f359c685dd103f4659c88c4fa6182e2b366b67 (diff)
downloadarchweb32-e6571252647d472b59a2aafb6dc580db72d5d12a.tar.xz
packages/pkginfo.php: create empty arrays if !isset to avoid warnings in the logs
-rw-r--r--packages/pkginfo.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 4c0e337..a2a8d19 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -128,6 +128,10 @@
$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")
+ $js_dep = array();
+ if (!isset($dep_it))
+ $dep_it = array();
$dep_errors = implode(
", ",
array_diff(