Commit 3780e8a6 authored by webchick's avatar webchick

#481508 by JamesAn: Update update module to use drupal_static().

parent c8688327
......@@ -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');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment