From b420e5a806b6d40c74c4a8c15ea20c214c66de04 Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Fri, 18 Dec 2015 14:52:27 -0500 Subject: [PATCH] Avoid a notice in config-edit --- commands/core/config.drush.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/core/config.drush.inc b/commands/core/config.drush.inc index 6ce8b8e6af..124732170d 100644 --- a/commands/core/config.drush.inc +++ b/commands/core/config.drush.inc @@ -694,7 +694,8 @@ function _drush_config_import_partial(FileStorage $source) { * Edit command callback. */ function drush_config_edit($config_name = '') { - if (empty($config_name) && $file = drush_get_option('file', FALSE)) { + $file = drush_get_option('file', FALSE); + if (empty($config_name) && $file) { // If not provided, assume config name from the given file. $config_name = basename($file, '.yml'); }