Code Duplication    Length = 3-3 lines in 2 locations

lib/Ajde/Mailer/class.phpmailer.php 2 locations

@@ 1164-1166 (lines=3) @@
1161
        }
1162
        if ($this->SingleTo === true) {
1163
            foreach ($this->SingleToArray as $val) {
1164
                if (!@$mail = popen($sendmail, 'w')) {
1165
                    throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1166
                }
1167
                fwrite($mail, 'To: '.$val."\n");
1168
                fwrite($mail, $header);
1169
                fwrite($mail, $body);
@@ 1179-1181 (lines=3) @@
1176
                }
1177
            }
1178
        } else {
1179
            if (!@$mail = popen($sendmail, 'w')) {
1180
                throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1181
            }
1182
            fwrite($mail, $header);
1183
            fwrite($mail, $body);
1184
            $result = pclose($mail);