Fix undefined index error
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 Oct 2010 21:44:50 +0000 (15:44 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 20 Oct 2010 16:07:14 +0000 (10:07 -0600)
imp/js/dimpcore.js

index 419313c..da720a9 100644 (file)
@@ -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());