From c229503ea5fa1f380ed0bc32053731b45bae3489 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Fri, 25 Apr 2003 01:05:36 +0000 Subject: [PATCH] fix for bug #145580, JS errors in mailWindowOverlay.js for newgroups only configuration r=bz, sr=sspitzer, a=sspitzer, thanks to ian@arlen.demon.co.uk for the patch. --- mailnews/base/resources/content/mailWindowOverlay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailnews/base/resources/content/mailWindowOverlay.js b/mailnews/base/resources/content/mailWindowOverlay.js index ec97d78d2576..bf91b82f5987 100644 --- a/mailnews/base/resources/content/mailWindowOverlay.js +++ b/mailnews/base/resources/content/mailWindowOverlay.js @@ -1562,14 +1562,14 @@ function IsEmptyTrashEnabled() { var folderURI = GetSelectedFolderURI(); var server = GetServer(folderURI); - return (server.canEmptyTrashOnExit?IsMailFolderSelected():false); + return (server && server.canEmptyTrashOnExit ? IsMailFolderSelected() : false); } function IsCompactFolderEnabled() { var folderURI = GetSelectedFolderURI(); var server = GetServer(folderURI); - if (!(server.canCompactFoldersOnServer)) + if (!(server && server.canCompactFoldersOnServer)) return false; var folderTree = GetFolderTree();