Changeset 364


Ignore:
Timestamp:
Dec 16, 2009 7:25:39 PM (14 years ago)
Author:
quinn
Message:

Fixed minor issue when a log event is generated when sending to an array of email addresses.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Email.inc.php

    r362 r364  
    270270        // Ensure required values exist.
    271271        if (!isset($this->_params['subject'])) {
    272             $app->logMsg(sprintf('Cannot send email to %s. SUBJECT not defined.', $this->_params['to']), LOG_ERR, __FILE__, __LINE__);
     272            $app->logMsg('Cannot send email. SUBJECT not defined.', LOG_ERR, __FILE__, __LINE__);
    273273            return false;
    274274        } else if (!isset($this->_template)) {
  • trunk/lib/Utilities.inc.php

    r363 r364  
    185185    return empty($replace) ? $text : preg_replace($search, $replace, $text);
    186186}
    187 
    188187
    189188/**
     
    478477}
    479478
    480 
    481479/**
    482480 * If $var is net set or null, set it to $default. Otherwise leave it alone.
     
    529527function urlEncodeArray($data, $prefix='', $_return=true)
    530528{
    531 
    532529    // Data is stored in static variable.
    533530    static $args;
     
    841838    return mb_substr($signed_val, 0, mb_strrpos($signed_val, '-'));
    842839}
    843 
    844840
    845841/**
     
    11381134}
    11391135
    1140 
    1141 
    11421136?>
Note: See TracChangeset for help on using the changeset viewer.