stremlau / html5_notifier

HTML5 Notifier plugin for roundcube
ISC License
64 stars 32 forks source link

PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in html5_notifier.php on line 53 #54

Open Bad-and-Mad opened 1 year ago

Bad-and-Mad commented 1 year ago

Would you please make a change similar to the following starting at line 53 to make the warnings disappear?

                $msgs = (array) $RCMAIL->storage->list_messages($args['mailbox']);
                $excluded_directories = array();
                if (!empty($RCMAIL->config->get('html5_notifier_excluded_directories'))) {
                    $excluded_directories = preg_split("/(,|;| )+/", $RCMAIL->config->get('html5_notifier_excluded_directories'));
                }