summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
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;