Changeset 2276 for branches

Show
Ignore:
Timestamp:
12/02/10 10:22:51 (18 months ago)
Author:
nick_ramsay
Message:

[1.5] Removed unnecessary is_object check as per ticket #192.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/libs/EmailFunctions.php

    r2196 r2276  
    114114                                if (SMTP == 'true') { 
    115115                                        //  Only create a new smtp object if we don't already have one: 
    116                                         if (!is_object($smtp)) { 
    117                                                 require_once "Mail.php"; 
    118                                                 $smtp = Mail::factory('smtp', array( 
    119                                                                         'host' => SMTP_HOST, 
    120                                                                         'port' => SMTP_PORT, 
    121                                                                         'auth' => TRUE, 
    122                                                                         'username' => SMTP_USERNAME, 
    123                                                                         'password' => SMTP_PASSWORD 
    124                                                                 )); 
    125                                         } 
     116                                        require_once "Mail.php"; 
     117                                        $smtp = Mail::factory('smtp', array( 
     118                                                                'host' => SMTP_HOST, 
     119                                                                'port' => SMTP_PORT, 
     120                                                                'auth' => TRUE, 
     121                                                                'username' => SMTP_USERNAME, 
     122                                                                'password' => SMTP_PASSWORD 
     123                                                        )); 
    126124 
    127125                                        $mail = $smtp->send($to, $headers, $body);