summaryrefslogtreecommitdiff
path: root/modules/update/update.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-15 10:12:36 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-15 10:12:36 +0000
commitdd65743e441e7e7f82f2d196a72cb2a7ad30fe4d (patch)
treeea133f69cf16f3a8fbc7540975330bb5c888c90a /modules/update/update.install
parent72d1794e595340b5873977258527493c33e684b2 (diff)
downloadbrdo-dd65743e441e7e7f82f2d196a72cb2a7ad30fe4d.tar.gz
brdo-dd65743e441e7e7f82f2d196a72cb2a7ad30fe4d.tar.bz2
- Patch #684828 by dww: function update_requirements() doesn't return anything during install and stops the install process.
Diffstat (limited to 'modules/update/update.install')
-rw-r--r--modules/update/update.install3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/update/update.install b/modules/update/update.install
index 7fcbf2ab8..00935f190 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;
}
/**