Undefined array key "iid_iswitch"

Issue #89 new
Mik J created an issue

Hello,

I have this error in my php-fpm logs

"NOTICE: PHP message: PHP Warning: Undefined array key "iid_iswitch" in /roundcubemail/plugins/ident_switch/ident_switch.php on line 100"

I have search but have not found what it could be.

Roundcube: 1.5.3

Php: 8.0.22

Regards

Comments (4)

  1. Former user Account Deleted

    Roundcube 1.6.1 same problem.

    My workaround for this (I know isn’t perfect or even good, but works, and don’t mess in logs anymore):

    Changes in ident_switch.php at line 100:

    Before:
    \$iid_s = $_SESSION['iid2' . self::MY_POSTFIX];

    Change to:
    if (array_key_exists('iid' . self::MY_POSTFIX, $_SESSION)) { $iid_s = $_SESSION['iid' . self::MY_POSTFIX]; } else { $iid_s = -1; }

    In my short tests works like a charm.

  2. Log in to comment