com web/rmtools: fix warning: include/Branch.php
| From: | Anatol Belski | Date: | Tue, 13 Dec 2016 00:36:14 +0000 |
| Subject: | com web/rmtools: fix warning: include/Branch.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25878@lists.php.net to get a copy of this message | ||
Commit: 35e65c586c075ae57bacc888ec12556f43c4f848
Author: Anatol Belski <ab@php.net> Tue, 13 Dec 2016 01:36:14 +0100
Parents: 78b56c89463fac74e4ab5f279a63389cd13d4906
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=35e65c586c075ae57bacc888ec12556f43c4f848
Log:
fix warning
Changed paths:
M include/Branch.php
Diff:
diff --git a/include/Branch.php b/include/Branch.php
index b0a754f..412c51f 100644
--- a/include/Branch.php
+++ b/include/Branch.php
@@ -97,7 +97,7 @@ class Branch {
public function requiredBuildRunsReached()
{
/* XXX 4 stands for all the combinations, scan the files to get this number from there instead of
hardcoding. */
- if (!$this->data->builds || empty($this->data->builds)) {
+ if (!isset($this->data->builds) || empty($this->data->builds)) {
return true;
}