From 030963e095dfb0a72542a4fc08d53d1767d0e158 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 21 Nov 2009 16:20:34 +0000 Subject: #634440 follow-up by justinrandell: Fixed enabling/uninstalling modules. --- modules/system/system.admin.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system/system.admin.inc') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index a8027d575..374170357 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -925,7 +925,7 @@ function system_modules_submit($form, &$form_state) { include_once DRUPAL_ROOT . '/includes/install.inc'; $modules = array(); // If we're not coming from the confirmation form, build the list of modules. - if (!isset($form_state['storage'])) { + if (!isset($form_state['storage']['modules'])) { foreach ($form_state['values']['modules'] as $group_name => $group) { foreach ($group as $module => $enabled) { $modules[$module] = array('group' => $group_name, 'enabled' => $enabled['enable']); @@ -1146,7 +1146,7 @@ function system_modules_uninstall($form, $form_state = NULL) { */ function system_modules_uninstall_confirm_form($storage) { // Nothing to build. - if (!isset($storage)) { + if (!isset($storage, $storage['uninstall'])) { return; } -- cgit v1.2.3