Ignore:
Timestamp:
Sep 20, 2007 9:36:57 AM (6 years ago)
Author:
robin
Message:

Fix order of checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_smtp.inc

    r804 r805  
    7777  if (!is_object($smtp_conn)) 
    7878    { 
    79     $helo_host = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : (!empty($CONFIG['smtp_helo_host']) ? $CONFIG['smtp_helo_host'] : 'localhost'); 
     79    $helo_host = empty($CONFIG['smtp_helo_host']) ? (empty($_SERVER['SERVER_NAME']) ? 'localhost' : $_SERVER['SERVER_NAME']) : $CONFIG['smtp_helo_host']; 
    8080    $SMTP_CONN = new Net_SMTP($smtp_host, $smtp_port, $helo_host); 
    8181 
Note: See TracChangeset for help on using the changeset viewer.