Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6b7d5fe2
Commit
6b7d5fe2
authored
Sep 16, 2008
by
Dries Buytaert
Browse files
- Patch
#245544
by Dave Reid, oadaeh, drupalgeek: the admin_tasks variable is initialized twice.
parent
ae31a4ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.module
View file @
6b7d5fe2
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment