The latest version (subscriptions.module 1.62.2.45.2.13) causes the following warnings:

  • warning: Variable passed to each() is not an array or object in subscriptions.module on line 515.
  • warning: extract() [function.extract]: First argument should be an array in subscriptions.module on line 541.

Comments

salvis’s picture

The "extract" warning is gone in the latest CVS version, but

  • warning: Variable passed to each() is not an array or object in subscriptions.module on line 535.

is still there.

BTW, the variable in question, $map, is empty, because $stype is NULL, which can certainly happen, because NULL is the default parameter value for $stype. The code

  $map = $stype_map[$stype];
  list($var, $object_type) = each($map);

should be prepared to handle this case, but I don't fully understand what it's doing, so I won't try to come up with a patch...

chx’s picture

Status: Active » Fixed

In my devel version at least. It will be committed soon.

Anonymous’s picture

Status: Fixed » Closed (fixed)