diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-05 01:10:12 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-05 01:10:12 +0000 |
commit | 3780e8a6c208a668462fc44d7f32b8385611d8bf (patch) | |
tree | 0f6b7d609fa8b353423d3053033f54078b4960d7 | |
parent | c86883271aa54d12b3e0d377fcca4473a3ea077c (diff) | |
download | brdo-3780e8a6c208a668462fc44d7f32b8385611d8bf.tar.gz brdo-3780e8a6c208a668462fc44d7f32b8385611d8bf.tar.bz2 |
#481508 by JamesAn: Update update module to use drupal_static().
-rw-r--r-- | modules/update/update.compare.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/update/update.compare.inc b/modules/update/update.compare.inc index 4782b2dc8..f630156be 100644 --- a/modules/update/update.compare.inc +++ b/modules/update/update.compare.inc @@ -30,7 +30,7 @@ * @see update_project_cache() */ function update_get_projects() { - static $projects = array(); + $projects = &drupal_static(__FUNCTION__, array()); if (empty($projects)) { // Retrieve the projects from cache, if present. $projects = update_project_cache('update_project_projects'); |