Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Mail.php

    r873 r874  
    7474  function Priority($Priority)
    7575  {
    76     if (!intval($Priority)) return (false);
    77 
    78     if (!isset($this->priorities[$Priority - 1])) return (false);
     76    if (!intval($Priority)) return false;
     77
     78    if (!isset($this->priorities[$Priority - 1])) return false;
    7979
    8080    $this->xheaders['X-Priority'] = $this->priorities[$Priority - 1];
    81     return (true);
     81    return true;
    8282  }
    8383
     
    146146
    147147    $res = mail($To, $this->Subject, $Body, $Headers);
    148     return ($res);
     148    return $res;
    149149  }
    150150
     
    153153    if (ereg(".*<(.+)>", $Address, $regs)) $Address = $regs[1];
    154154    if (ereg("^[^@  ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)\$", $Address))
    155       return (true);
    156       else return (false);
     155      return true;
     156      else return false;
    157157  }
    158158
     
    168168  private function ContentEncoding($Charset)
    169169  {
    170     if ($Charset != CHARSET_ASCII) return ('8bit');
    171       else return ('7bit');
     170    if ($Charset != CHARSET_ASCII) return '8bit';
     171      else return '7bit';
    172172  }
    173173
     
    203203      }
    204204    } else $Result = $Body;
    205     return ($Result);
     205    return $Result;
    206206  }
    207207
     
    227227        "\nContent-Transfer-Encoding: ".$this->ContentEncoding($Body['Charset'])."\n\n".$Body['Content']."\n";
    228228    }
    229     return ($Result);
     229    return $Result;
    230230  }
    231231}
Note: See TracChangeset for help on using the changeset viewer.