Another syntax fix

This commit is contained in:
Jean-Philippe Guérard 2012-01-18 00:33:42 +01:00
parent 12a07f1407
commit 3908d13b4a
1 changed files with 5 additions and 2 deletions

View File

@ -173,8 +173,11 @@ function sendEmail( $to, $subject, $body, $headers, $param)
$size_encoded_app = strlen( $encoded_app ) % 76 ;
$size_admin_email = strlen( ADRESSEMAILADMIN ) ;
if ( $size_encoded_app + $size_admin_email + 9 > 74 ) $folding = "\r\n"
else $folding = "" ;
if ( $size_encoded_app + $size_admin_email + 9 > 74 ) {
$folding = "\r\n" ;
} else {
$folding = "" ;
} ;
$from = sprintf( "From: %s%s <%s>\n", $encoded_app, $folding, ADRESSEMAILADMIN ) ;
if ( $headers ) $headers .= "\r\n" ;