One of these days I'll get a commit right the first time :)
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 2 Jun 2003 19:36:49 +0000 (19:36 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 2 Jun 2003 19:36:49 +0000 (19:36 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4962 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/mail_fetch/fetch.php

index 09b23bc..1ac19ee 100644 (file)
@@ -48,6 +48,9 @@ sqgetGlobalVar('delimiter',  $delimiter,  SQ_SESSION);
         $mailfetch_server_[$i] = getPref($data_dir, $username, "mailfetch_server_$i");
         $mailfetch_port_[$i]   = getPref($data_dir, $username, "mailfetch_port_$i");
         $mailfetch_alias_[$i]  = getPref($data_dir, $username, "mailfetch_alias_$i");
         $mailfetch_server_[$i] = getPref($data_dir, $username, "mailfetch_server_$i");
         $mailfetch_port_[$i]   = getPref($data_dir, $username, "mailfetch_port_$i");
         $mailfetch_alias_[$i]  = getPref($data_dir, $username, "mailfetch_alias_$i");
+        if($mailfetch_alias_[$i] == '') {
+            $mailfetch_alias_[$i] = $mailfetch_server_[$i];
+        }
         $mailfetch_user_[$i]   = getPref($data_dir, $username, "mailfetch_user_$i");
         $mailfetch_pass_[$i]   = getPref($data_dir, $username, "mailfetch_pass_$i");
         $mailfetch_lmos_[$i]   = getPref($data_dir, $username, "mailfetch_lmos_$i");
         $mailfetch_user_[$i]   = getPref($data_dir, $username, "mailfetch_user_$i");
         $mailfetch_pass_[$i]   = getPref($data_dir, $username, "mailfetch_pass_$i");
         $mailfetch_lmos_[$i]   = getPref($data_dir, $username, "mailfetch_lmos_$i");