A.L.E.C wrote:
preg_split('/,/', $RCMAIL->config->get('search_mods'), -1, PREG_SPLIT_NO_EMPTY)
Why not just explode()?
Because I need PREG_SPLIT_NO_EMPTY.
That may be a result of the search_mods value in the database containing a comma at the end, but an empty value causes JS errors so I'd rather make sure it doesn't happen. Think of it as a sort of value-validation :)
Robin
List info: http://lists.roundcube.net/dev/