From 3780e8a6c208a668462fc44d7f32b8385611d8bf Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 5 Jun 2009 01:10:12 +0000 Subject: #481508 by JamesAn: Update update module to use drupal_static(). --- modules/update/update.compare.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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'); -- cgit v1.2.3