Skip to content

Commit

Permalink
Perform assignment after validating the return value
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeirelesfon committed Feb 5, 2016
1 parent c0212b2 commit 0bc6d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/backend.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,8 @@ function _drush_backend_invoke($cmds, $common_backend_options = array(), $contex

if ($proc['output']) {
$values = drush_backend_parse_output($proc['output'], $proc['backend-options'], $proc['outputted']);
$values['site'] = $site;
if (is_array($values)) {
$values['site'] = $site;
if (empty($ret)) {
$ret = $values;
}
Expand Down

0 comments on commit 0bc6d6f

Please sign in to comment.