Commit 6b7d5fe2 authored by Dries's avatar Dries

- Patch #245544 by Dave Reid, oadaeh, drupalgeek: the admin_tasks variable is initialized twice.

parent ae31a4ab
......@@ -1357,9 +1357,6 @@ function system_admin_compact_page($mode = 'off') {
function system_get_module_admin_tasks($module) {
static $items;
$admin_access = user_access('administer permissions');
$admin_tasks = array();
if (!isset($items)) {
$result = db_query("
SELECT m.load_functions, m.to_arg_functions, m.access_callback, m.access_arguments, m.page_callback, m.page_arguments, m.title, m.title_callback, m.title_arguments, m.type, ml.*
......@@ -1372,6 +1369,8 @@ function system_get_module_admin_tasks($module) {
}
}
}
$admin_access = user_access('administer permissions');
$admin_tasks = array();
$admin_task_count = 0;
// Check for permissions.
......
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