diff options
| author | Nick Palmer <nick@sluggardy.net> | 2010-01-12 18:02:48 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2010-01-12 18:02:48 +0000 |
| commit | fdf21f923c7cb7223bde25523297482a00cbc10c (patch) | |
| tree | 185e4c0e1defe6888edb6048a8d69968697efaa3 /admin | |
| parent | 9aa229641a99ff829ca44692eb07b4529e876761 (diff) | |
| download | boards-fdf21f923c7cb7223bde25523297482a00cbc10c.tar.gz boards-fdf21f923c7cb7223bde25523297482a00cbc10c.tar.bz2 boards-fdf21f923c7cb7223bde25523297482a00cbc10c.zip | |
personal is not always defined.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/boardsync_inc.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/boardsync_inc.php b/admin/boardsync_inc.php index 690fac4..23e14d6 100644 --- a/admin/boardsync_inc.php +++ b/admin/boardsync_inc.php @@ -266,7 +266,12 @@ function board_sync_process_message( $pMbox, $pMsgNum, $pMsgHeader, $pMsgStructu $date = board_sync_get_headerinfo($pMsgHeader, 'Date'); $from = board_sync_get_headerinfo($pMsgHeader, 'from'); $fromaddress = $from[0]->mailbox."@".$from[0]->host; - $personal = ucwords($from[0]->personal); + // personal is not always defined. + if (isset($from[0]->personal)) { + $personal = ucwords($from[0]->personal); + } else { + $personal = null; + } $in_reply_to = board_sync_get_headerinfo($pMsgHeader, 'in_reply_to'); if ($pLog) print( "\n---- ".date( "Y-m-d HH:mm:ss" )." -------------------------\nImporting: ".$message_id."\nDate: ".$date."\nFrom: ".$fromaddress."\nTo: ".$allRecipients."\nSubject: ".$subject."\nIn Reply To: ".$in_reply_to."\nName: ".$personal."\n"); |
