diff --git a/lib/Horde/Imap/Client/Socket.php b/lib/Horde/Imap/Client/Socket.php index 9fddb7d9..3449fb1a 100644 --- a/lib/Horde/Imap/Client/Socket.php +++ b/lib/Horde/Imap/Client/Socket.php @@ -3632,14 +3632,14 @@ protected function _storeCmd($options) if (!empty($options['replace'])) { $cmds[] = array( 'FLAGS' . ($silent ? '.SILENT' : ''), - $options['replace'] + new Horde_Imap_Client_Data_Format_List($options['replace']) ); } else { foreach (array('add' => '+', 'remove' => '-') as $k => $v) { if (!empty($options[$k])) { $cmds[] = array( $v . 'FLAGS' . ($silent ? '.SILENT' : ''), - $options[$k] + new Horde_Imap_Client_Data_Format_List($options[$k]) ); } }