In the system_get_module_admin_tasks() function of system.module, $admin_tasks is initialized twice, first at about line 1344 and second at about line 1358. Nothing is done with the variable between the two initializations, so it's not a big deal, just unnecessary.

The attached patch eliminates the second one (and adds a blank line where it was, visually separating the two processes).

Comments

drupalgeek’s picture

Version: 7.x-dev » 6.x-dev
Priority: Minor » Critical

how we use imagefield module for drupal6

damien tournoud’s picture

Version: 6.x-dev » 7.x-dev
Priority: Critical » Minor

@drupalgeek: that's not the place to ask a question like this. Please see http://drupal.org/support

lilou’s picture

Status: Active » Needs review

Patch still applies against CVS/HEAD.

lilou’s picture

Title: The admin_tasks variable is initialized twice . . . » The admin_tasks variable is initialized twice
dave reid’s picture

StatusFileSize
new1.01 KB

Here's a revised patch that moves some variable initialization around so they're grouped together and make more sense.

oadaeh’s picture

StatusFileSize
new1.01 KB

@Dave Reid: your patch adds a line with only two spaces in it. I've attached one that fixes that.

dave reid’s picture

Status: Needs review » Reviewed & tested by the community

Good catch oadaeh! Patch applies cleanly, passes and RTBC.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Good catch. Committed to CVS HEAD. Thanks folks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.