From 4f28649fc3841e82e2b5347deff8d1157e2a657d Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 5 Aug 2010 08:39:08 +0000 Subject: #619902 follow-up by David_Rothstein: Fixed Use drupal_static() in dashboard_regions(). --- modules/dashboard/dashboard.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/dashboard/dashboard.module b/modules/dashboard/dashboard.module index 7faba5d8d..0ac52f2b6 100644 --- a/modules/dashboard/dashboard.module +++ b/modules/dashboard/dashboard.module @@ -281,7 +281,7 @@ function dashboard_region_descriptions() { * Return an array of dashboard region names. */ function dashboard_regions() { - static $regions; + $regions = &drupal_static(__FUNCTION__); if (!isset($regions)) { $regions = array_keys(dashboard_region_descriptions()); } -- cgit v1.2.3