PDA

View Full Version : problems with $imodcache


hymoo
02-17-2009, 10:51 AM
Well, the problem is easy. the first value of the array in imodcache is always -1.

(eg. $imodcache[1] == the moderator cache for forum id 1, mine is -1 ;x)

all arrays are like this: $imodcache[-1][restinfo]; instead of imodcache['forumid'][restinfo].

I try and refresh the moderator cache with the following.

if ($vbulletin->options['showmoderatorcolumn']) { cache_moderators(); } else { cache_moderators($vbulletin->userinfo['userid']); }

but this seems to have no effect.

Anyone have any clue how I can reset the moderator_cache to show the correct information.

Marco van Herwaarden
02-18-2009, 09:20 AM
Never really looked into this, but those entries could relate to S.Mods as they have access to all orums (indicated with value -1).