Commit eb0839b9 authored by Dries's avatar Dries

- Patch #480426 by JamesAn: converted to drupal_static().

parent 2af96209
......@@ -74,7 +74,7 @@ function menu_overview_form(&$form_state, $menu) {
* Recursive helper function for menu_overview_form().
*/
function _menu_overview_tree_form($tree) {
static $form = array('#tree' => TRUE);
$form = &drupal_static(__FUNCTION__, array('#tree' => TRUE));
foreach ($tree as $data) {
$title = '';
$item = $data['link'];
......
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