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

Initialize $assign_phid properly in the "!assign" email action

Summary: If you `!assign cahd` when you meant to `!assign chad`, we'll hit an "Undefined variable: assign_phid" a little further down.

Test Plan: Eyeballed it. See IRC.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D14291
This commit is contained in:
epriestley 2015-10-16 06:39:31 -07:00
parent 4b43667086
commit cdd5e3f7dd

View file

@ -34,6 +34,7 @@ final class ManiphestAssignEmailCommand
array $argv) { array $argv) {
$xactions = array(); $xactions = array();
$assign_phid = null;
$assign_to = head($argv); $assign_to = head($argv);
if ($assign_to) { if ($assign_to) {