Skip to content

Commit ad81700

Browse files
alexwylerepriestley
authored andcommitted
[Countdown] fix undefined variable errors
Summary: I was trying out the "Countdown" addon and noticed this undefined variable error. ##[Wed Feb 05 03:28:02 2014] [error] [client 97.88.250.50] #0 PhutilErrorHandler::handleError(8, Undefined variable: errors, /phabricator/src/applications/countdown/controller/PhabricatorCountdownEditController.php, 132, Array of size 12 starting with: { request => Object AphrontRequest }) called at [/phabricator/src/applications/countdown/controller/PhabricatorCountdownEditController.php:132], referer: http://phabricator.eatstreet.com/countdown/## Test Plan: http://phabricator.eatstreet.com/countdown/edit/ No error Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8143
1 parent 9be4df0 commit ad81700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/countdown/controller/PhabricatorCountdownEditController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public function processRequest() {
3838
$e_text = true;
3939
$e_epoch = null;
4040

41+
$errors = array();
4142
if ($request->isFormPost()) {
42-
$errors = array();
4343
$title = $request->getStr('title');
4444
$epoch = $request->getStr('epoch');
4545
$view_policy = $request->getStr('viewPolicy');

0 commit comments

Comments
 (0)