From dd65743e441e7e7f82f2d196a72cb2a7ad30fe4d Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Fri, 15 Jan 2010 10:12:36 +0000
Subject: [PATCH] - Patch #684828 by dww: function update_requirements()
 doesn't return anything during install and stops the install process.

---
 modules/update/update.install | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/update/update.install b/modules/update/update.install
index 7fcbf2ab8bb1..00935f190e58 100644
--- a/modules/update/update.install
+++ b/modules/update/update.install
@@ -28,6 +28,7 @@
  * @see _update_cron_notify()
  */
 function update_requirements($phase) {
+  $requirements = array();
   if ($phase == 'runtime') {
     if ($available = update_get_available(FALSE)) {
       module_load_include('inc', 'update', 'update.compare');
@@ -53,8 +54,8 @@ function update_requirements($phase) {
       $requirements['update_core']['reason'] = UPDATE_UNKNOWN;
       $requirements['update_core']['description'] = _update_no_data();
     }
-    return $requirements;
   }
+  return $requirements;
 }
 
 /**
-- 
GitLab