diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-02-10 09:57:47 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-02-10 09:57:47 +0000 |
commit | 3baebd9c4f438534ff6a0104091105468a7fd910 (patch) | |
tree | d07bdab25d208122e6cb5a78ffaa9c43d2576323 | |
parent | 2bafb2c73541e40643ba7bf1d477d0aa5ef1b99b (diff) | |
download | pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar.gz pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar.bz2 pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.tar.xz pkgsubmit-3baebd9c4f438534ff6a0104091105468a7fd910.zip |
Fix 3 more warnings
-rw-r--r-- | lib.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |