Should be a better fix so this hook now works with plugins that have been using it...
[squirrelmail.git] / functions / imap_messages.php
index b2f8eab5bb73ab8a945db7c51cd9310239a325a5..7f9f26309e1ffe28515337d53a20bb8380e0143a 100755 (executable)
@@ -923,7 +923,7 @@ function sqimap_get_message($imap_stream, $id, $mailbox) {
     if ($read) {
         if (preg_match('/.+FLAGS\s\((.*)\)\s/AUi',$read[0],$regs)) {
             if (trim($regs[1])) {
-                $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
+                $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY);
             }
         }
     } else {