From 24e63e22188678407b180944f4c7bb9f494f09ee Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 13 Apr 2014 11:57:37 -0400
Subject: [PATCH] Fix deleting/moving folders from folders with name "0", "00", etc.
---
program/include/rcmail.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 7b663ca..1fd0776 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -2050,7 +2050,7 @@
// create a per-folder UIDs array
foreach ((array)$_uid as $uid) {
list($uid, $mbox) = explode('-', $uid, 2);
- if (empty($mbox))
+ if (!strlen($mbox))
$mbox = $_mbox;
if ($uid == '*')
$result[$mbox] = $uid;
--
Gitblit v1.9.1