Skip to content

Commit

Permalink
Fixed condition for hidden files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck committed Jul 24, 2016
1 parent e658a96 commit 60026d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/core/drupal/environment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function drush_get_modules($include_hidden = TRUE) {
$modules = system_rebuild_module_data();

foreach ($modules as $key => $module) {
if ((!$include_hidden) && (isset($module->info['hidden']))) {
if ((!$include_hidden) && (!empty($module->info['hidden']))) {
unset($modules[$key]);
}
else {
Expand Down

0 comments on commit 60026d9

Please sign in to comment.