Skip to content

Commit

Permalink
Issue #1866894 by Chi: Only variables should be passed by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi authored and greg-1-anderson committed Dec 14, 2012
1 parent 38fb079 commit 7380548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drush.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ function drush_command_belongs_to_disabled_module() {
if (drush_has_boostrapped(DRUSH_BOOTSTRAP_DRUPAL_FULL)) {
_drush_find_commandfiles(DRUSH_BOOTSTRAP_DRUPAL_SITE, DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION);
$commands = drush_get_commands();
$command_name = array_shift(drush_get_arguments());
$arguments = drush_get_arguments();
$command_name = array_shift($arguments);
if (isset($commands[$command_name])) {
// We found it. Load its module name and set an error.
if (is_array($commands[$command_name]['drupal dependencies']) && count($commands[$command_name]['drupal dependencies'])) {
Expand Down

0 comments on commit 7380548

Please sign in to comment.