deflomu / Roundcube-SMTP-per-Identity-Plugin

Roundcube plugin to setup different SMTP settings per identity
MIT License
44 stars 19 forks source link

new identity : Uncaught TypeError: Unsupported operand types: null + array #24

Closed ebinet closed 2 years ago

ebinet commented 2 years ago

When creating a new identity : PHP Fatal error: Uncaught TypeError: Unsupported operand types: null + array in /path-to-roundcube/plugins/identity_smtp/identity_smtp.php:194

If I insrt this new line just before line 194 it seems to work again : if (is_null($record)) $record = array();

Roundcube version = 1.5.2 php version = 8.0 identity_smtp branch = master

Jan-E commented 2 years ago

Could this be related to https://github.com/deflomu/Roundcube-SMTP-per-Identity-Plugin/pull/23/commits/411a33432ab1ba7fdb6004f6b2b66bd3601dff9f ?

ebinet commented 2 years ago

Yes indeed. I saw the pull request just after opening my issue. It would be useful to go forward. The code proposed isn't very different from mine.

NotActuallyTerry commented 2 years ago

Fixed by #23