From http://php.net/global

A static variable exists only in a local function scope.

Instead of dealing with variable scope issues following approach might be taken.

Introduce an argument "$reset = FALSE" for feedapi_get_settings() like following and reset $node_settings[$nid] if "$reset = TRUE".

function feedapi_get_settings($node_type, $nid = FALSE, $reset = FALSE)

Comments

mustafau’s picture

StatusFileSize
new626 bytes

Patch is attached.

mustafau’s picture

Status: Active » Needs review
mustafau’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Category: task » bug
StatusFileSize
new1.95 KB

Updated to 6.x.

aron novak’s picture

Status: Needs review » Fixed

Thanks. Fixed for both braches.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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