1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00

Fix undefined variable warning in unit test field

Summary:
See D1295. $unit_messages may be undefined.

I'll see if I can improve the visibility of warnings, the red dot in DarkConsole
is easy to miss right now. See T734.

Test Plan: Loaded a revision with no unit failures, didn't receive a warning.

Reviewers: nh, btrahan, jungejason

Reviewed By: btrahan

CC: aran, btrahan

Differential Revision: https://secure.phabricator.com/D1306
This commit is contained in:
epriestley 2012-01-04 07:18:16 -08:00
parent 2e9bb62fe7
commit 28b606394b

View file

@ -67,14 +67,14 @@ final class DifferentialUnitFieldSpecification
$postponed_count++;
}
}
}
if ($unit_messages) {
$utail =
'<div class="differential-unit-block">'.
'<ul>'.
implode("\n", $unit_messages).
'</ul>'.
'</div>';
if ($unit_messages) {
$utail =
'<div class="differential-unit-block">'.
'<ul>'.
implode("\n", $unit_messages).
'</ul>'.
'</div>';
}
}
if ($postponed_count > 0 &&