Skip to content

Commit

Permalink
Merge pull request #1982 from fmeirelesfon/backend-invoke
Browse files Browse the repository at this point in the history
Perform assignment after validating the return value
  • Loading branch information
weitzman committed Feb 12, 2016
2 parents 0d59cbe + 0bc6d6f commit 9490494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/backend.inc
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 9490494

Please sign in to comment.