This commit has been accessed 584 times via Git panel.
commit 6dd52cfd7a40375b0b3b465b7c701ad283b9e608
tree d5b48e5017500fa313c90d8f70af46331cc50063
parent a8d0335183636f6ca8c379130cc6c474cef05a53
author Engels Antonio <engels@majcms.org> 1334946171 +0800
committer Engels Antonio <engels@majcms.org> 1334946171 +0800
Fix missing mailboxes
diff --git a/core.php b/core.php
index 1edec68..0bc18fd 100644
--- a/core.php
+++ b/core.php
@@ -345,7 +345,7 @@ function kartero_sort_folders($host,$array) {
unset($array[$sent]);
}
else {
- if ($sent) {
+ if (isset($sent)) {
unset($sent);
}
}
@@ -355,23 +355,23 @@ function kartero_sort_folders($host,$array) {
unset($array[$trash]);
}
else {
- if ($trash) {
+ if (isset($trash)) {
unset($trash);
}
}
sort($array);
- if ($trash) {
+ if (isset($trash)) {
array_unshift($array,"{$host}Trash");
unset($trash);
}
- if ($sent) {
+ if (isset($sent)) {
array_unshift($array,"{$host}Sent");
unset($sent);
}
-
+
array_unshift($array,"{$host}INBOX");
reset($array);
tree d5b48e5017500fa313c90d8f70af46331cc50063
parent a8d0335183636f6ca8c379130cc6c474cef05a53
author Engels Antonio <engels@majcms.org> 1334946171 +0800
committer Engels Antonio <engels@majcms.org> 1334946171 +0800
Fix missing mailboxes
diff --git a/core.php b/core.php
index 1edec68..0bc18fd 100644
--- a/core.php
+++ b/core.php
@@ -345,7 +345,7 @@ function kartero_sort_folders($host,$array) {
unset($array[$sent]);
}
else {
- if ($sent) {
+ if (isset($sent)) {
unset($sent);
}
}
@@ -355,23 +355,23 @@ function kartero_sort_folders($host,$array) {
unset($array[$trash]);
}
else {
- if ($trash) {
+ if (isset($trash)) {
unset($trash);
}
}
sort($array);
- if ($trash) {
+ if (isset($trash)) {
array_unshift($array,"{$host}Trash");
unset($trash);
}
- if ($sent) {
+ if (isset($sent)) {
array_unshift($array,"{$host}Sent");
unset($sent);
}
-
+
array_unshift($array,"{$host}INBOX");
reset($array);