Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F118199535
D2410.1775673860.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D2410.1775673860.diff
View Options
diff --git a/src/include/rcube_imap_generic.php b/src/include/rcube_imap_generic.php
--- a/src/include/rcube_imap_generic.php
+++ b/src/include/rcube_imap_generic.php
@@ -787,7 +787,7 @@
*/
public function getHierarchyDelimiter()
{
- if ($this->prefs['delimiter']) {
+ if (isset($this->prefs['delimiter'])) {
return $this->prefs['delimiter'];
}
@@ -1435,6 +1435,7 @@
*/
public function clearFolder($mailbox)
{
+ $res = false;
if ($this->countMessages($mailbox) > 0) {
$res = $this->flag($mailbox, '1:*', 'DELETED');
}
@@ -1634,10 +1635,11 @@
return $this->data['EXISTS'];
}
- // Check internal cache
- $cache = $this->data['STATUS:'.$mailbox];
- if (!empty($cache) && isset($cache['MESSAGES'])) {
- return (int) $cache['MESSAGES'];
+ if (isset($this->data["STATUS:".$mailbox])) {
+ $cache = $this->data["STATUS:".$mailbox];
+ if (!empty($cache) && isset($cache['MESSAGES'])) {
+ return (int) $cache['MESSAGES'];
+ }
}
// Try STATUS (should be faster than SELECT)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 6:44 PM (7 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831276
Default Alt Text
D2410.1775673860.diff (1 KB)
Attached To
Mode
D2410: rcube_imap_generic.php fixes
Attached
Detach File
Event Timeline