-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

- --Ingo Herz wrote on 2005-10-20 11:01:
> The last problem for now was an endless loop in 
> midcom/lib/midcom/helper/_basicnav.php For some reason it thinks, that the 
> root topic has viewergroups defined (they are NOT set) and it can not be 
> shown. After that it loops until max execution time. This has also been 
> reported to the bug tracker (issue 248).
> My solution was to add the 2nd condition to the if-statement:
> 
>         if ((! is_null($napdata[MIDCOM_NAV_VIEWERGROUPS])) &&
>             (count($napdata[MIDCOM_NAV_VIEWERGROUPS]) <> 0))
>         {
>             $visible = false;
>             foreach ($napdata[MIDCOM_NAV_VIEWERGROUPS] as $guid)
>             {
>                 if ($GLOBALS["midcom"]->check_memberships($guid))
>                 {
>                     // User is member of a viewer group
>                     $visible = true;
>                 }
>             }
> 
> But I really don't know what is going on with $napdata[]...

Did you get any more errors? The piece of code you showed above should not loop
indefinitly, and #248 is fixed afair. Alone with this information, I cannot
judge what is happening here.


Live long and Prosper!
Torben Nehmer

- --
Torben Nehmer, Guenzburg, Bavaria, Germany
http://www.nathan-syntronics.de, mailto:[EMAIL PROTECTED]
PGP Public Key: https://www.link-m.de/pgp/t.nehmer.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDV46QJPh4Kn6d5FYRAgRSAKDjYUBda4rIJ8uQB9IN+f8wFlaqkgCeN6bC
hNMPqUYLE7jyjSQqhzSTacY=
=+fjb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to