summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-02-10 09:57:47 +0000
committerPascal Terjan <pterjan@gmail.com>2016-02-10 09:57:47 +0000
commit3baebd9c4f438534ff6a0104091105468a7fd910 (patch)
treed07bdab25d208122e6cb5a78ffaa9c43d2576323 /lib.php
parent2bafb2c73541e40643ba7bf1d477d0aa5ef1b99b (diff)
downloadpkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar
pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar.gz
pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar.bz2
pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar.xz
pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.zip
Fix 3 more warnings
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.php b/lib.php
index f6621a8..6ff39db 100644
--- a/lib.php
+++ b/lib.php
@@ -106,11 +106,11 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null
$pkgs[$key]['status']['upload'] = 1;
} else if ($ext == '.lock') {
preg_match("!(.*)\.iurt\.(.*)\.\d+\.\d+!", $data, $buildhost);
- if (!$hosts[$buildhost[2]]) {
+ if (!isset($hosts[$buildhost[2]])) {
$hosts[$buildhost[2]]= array();
}
$hosts[$buildhost[2]][$buildhost[1]] = $key;
- if ($pkgs[$key]['status']['build']) {
+ if (isset($pkgs[$key]['status']['build'])) {
array_push($pkgs[$key]['status']['build'], $buildhost[2]);
} else {
$pkgs[$key]['status']['build'] = array($buildhost[2]);
@@ -133,7 +133,7 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null
}
} else if ($ext == '.fail') {
$arch = $data;
- if (!$pkgs[$key]['status']['fail']) {
+ if (!isset($pkgs[$key]['status']['fail'])) {
$pkgs[$key]['status']['fail'] = array();
}
$pkgs[$key]['status']['fail'][$arch] = 1;