From 7dd99b024b6ae1262bc4a50f0037e50e5ab5d683 Mon Sep 17 00:00:00 2001
From: Roni Kantis <roni.kantis@gmail.com>
Date: Wed, 19 Sep 2012 10:23:53 +0300
Subject: [PATCH] Issue #1788608 by bfr:Removed unnecessary control statement

---
 core/modules/system/system.admin.inc | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc
index 2bf4343..f5564db 100644
--- a/core/modules/system/system.admin.inc
+++ b/core/modules/system/system.admin.inc
@@ -1076,17 +1076,16 @@ function system_modules_confirm_form($modules, $storage) {
 
   $form['text'] = array('#markup' => theme('item_list', array('items' => $items)));
 
-  if ($form) {
     // Set some default form values
-    $form = confirm_form(
-      $form,
-      t('Some required modules must be enabled'),
-      'admin/modules',
-      t('Would you like to continue with the above?'),
-      t('Continue'),
-      t('Cancel'));
-    return $form;
-  }
+  $form = confirm_form(
+    $form,
+    t('Some required modules must be enabled'),
+    'admin/modules',
+    t('Would you like to continue with the above?'),
+    t('Continue'),
+    t('Cancel'));
+
+  return $form;
 }
 
 /**
-- 
1.7.11.4

