projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a little more clean-up
[squirrelmail.git]
/
functions
/
imap_mailbox.php
diff --git
a/functions/imap_mailbox.php
b/functions/imap_mailbox.php
index 90ef906d6e925f843296bd36a87b8d01fee43658..fe275a1ecedbe35188c965d8c795a70f1908642f 100755
(executable)
--- a/
functions/imap_mailbox.php
+++ b/
functions/imap_mailbox.php
@@
-338,7
+338,7
@@
function user_strcasecmp($a, $b) {
* See comment on sqimap_mailbox_parse() for info about the returned array.
*/
function sqimap_mailbox_list($imap_stream) {
* See comment on sqimap_mailbox_parse() for info about the returned array.
*/
function sqimap_mailbox_list($imap_stream) {
- global $boxesnew, $default_folder_prefix
, $optional_delimiter
;
+ global $boxesnew, $default_folder_prefix;
if ( !isset( $boxesnew ) ) {
if ( !isset( $boxesnew ) ) {
@@
-467,8
+467,7
@@
function sqimap_mailbox_list($imap_stream) {
$boxesnew[] = $box;
$used[$k] = true;
}
$boxesnew[] = $box;
$used[$k] = true;
}
- $spec_sub = $box['formatted'];
- $spec_sub = str_replace(" ", "", $box['formatted']);
+ $spec_sub = str_replace(' ', '', $box['formatted']);
if (!$used[$k] && preg_match("/^$default_folder_prefix(Sent|Drafts|Trash).{1}$spec_sub$/", $box['unformatted']) ) {
$boxesnew[] = $box;
$used[$k] = true;
if (!$used[$k] && preg_match("/^$default_folder_prefix(Sent|Drafts|Trash).{1}$spec_sub$/", $box['unformatted']) ) {
$boxesnew[] = $box;
$used[$k] = true;