The config_perms_perms() is being called in various places within the module. The caller always assumes that this function will return an array, as its return value is being used in foreach-loops.

The function should return an empty array if there are no perms to return, instead of NULL.

Comments

olofbokedal’s picture

Status: Needs review » Closed (duplicate)

Lol, forgot that this already has been fixed in #2177151: Invalid data structure when retrieving config from the cache, by me...

Move along.