From ac20a963e7eef0ce515b86d9d5acf47a242c4b59 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 19 Oct 2010 15:44:50 -0600 Subject: [PATCH] Fix undefined index error --- imp/js/dimpcore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/dimpcore.js b/imp/js/dimpcore.js index 419313ca6..da720a9e5 100644 --- a/imp/js/dimpcore.js +++ b/imp/js/dimpcore.js @@ -271,7 +271,7 @@ var DimpCore = { if (type.startsWith('forward') || !args || !args.uids) { if (type.startsWith('forward')) { params.uids = this.toRangeString(this.selectionToRange(args.uids)); - } else if (args.to) { + } else if (args && args.to) { params.to = args.to; } this.popupWindow(this.addURLParam(DIMP.conf.URI_COMPOSE, params), 'compose' + new Date().getTime()); -- 2.11.0