PHP Warning: Undefined array key "trash_mbox_iswitch"
Hi,
I’m using ident_switch 4.3.5 with roundcubemail 1.5.
Everything seems working but I get a lot of Php warnings like :
PHP Warning: Undefined array key "drafts_mbox_iswitch" in /usr/share/roundcubemail-1.5.0/plugins/ident_switch/ident_switch.php on line 72
PHP Warning: Undefined array key "sent_mbox_iswitch" in /usr/share/roundcubemail-1.5.0/plugins/ident_switch/ident_switch.php on line 72
PHP Warning: Undefined array key "junk_mbox_iswitch" in /usr/share/roundcubemail-1.5.0/plugins/ident_switch/ident_switch.php on line 72
PHP Warning: Undefined array key "trash_mbox_iswitch" in /usr/share/roundcubemail-1.5.0/plugins/ident_switch/ident_switch.php on line 72
Do you know how to remove these warnings ?
regards.
Xuo.
Comments (4)
-
-
reporter Hi,
Thank you for your answer. This is what I did after I’ve searched for similar issues on Internet.
Do you know if it would be possible to correct all the code the way you did it to avoid the lost of these changes when a new version will be available ?
Regards.
Xuo.
-
reporter - changed status to resolved
-
repo owner Fixes
#82→ <<cset 46eba62185c2>>
- Log in to comment
This is due to the new PHP defaults, adding isset instead of presuming null for unset array values removes this warning.