From: Michael M Slusarz Date: Tue, 8 Dec 2009 21:18:15 +0000 (-0700) Subject: Bug #8759: Don't add special folders to folder list if they don't exist X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6be01926c3a28d983fa27144ffad03e3bce3c312;p=horde.git Bug #8759: Don't add special folders to folder list if they don't exist --- diff --git a/imp/ajax.php b/imp/ajax.php index 0c33dc0a0..3a797d697 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -338,8 +338,9 @@ case 'ListFolders': } foreach ($val as $val2) { - if (!isset($folder_list[$val2])) { - $folder_list[$val2] = $imptree->element($val2); + if (!isset($folder_list[$val2]) && + ($elt = $imptree->element($val2))) { + $folder_list[$val2] = $elt; } } }