Skip to content

Commit

Permalink
Handle empty argv in daemon log view
Browse files Browse the repository at this point in the history
Summary: This could be empty probably for old logs

Test Plan: Ran the controller.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3633
  • Loading branch information
vrana committed Oct 5, 2012
1 parent 511a8ba commit dfe5ae0
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -41,7 +41,9 @@ public function processRequest() {
$content = array();

$argv = $log->getArgv();
$argv = implode("\n", $argv);
if ($argv) {
$argv = implode("\n", $argv);
}

$form = id(new AphrontFormView())
->setUser($user)
Expand Down

0 comments on commit dfe5ae0

Please sign in to comment.