--- class.t3lib_htmlmail_broken.php 2007-12-16 14:54:05.000000000 +0100
+++ class.t3lib_htmlmail.php 2007-12-16 14:53:20.000000000 +0100
@@ -371,9 +371,9 @@
$temp = $this->split_fileref($file);
if ($temp['file']) {
$fileInfo['filename'] = $temp['file'];
- } elseif (strpos(' '.$fileInfo['content_type'], 'htm') {
+ } elseif (strpos(' '.$fileInfo['content_type'], 'htm')) {
$fileInfo['filename'] = 'index.html';
- else {
+ } else {
$fileInfo['filename'] = 'unknown';
}
$this->theParts['attach'][] = $fileInfo;
@@ -1081,7 +1081,7 @@
*/
public function substMediaNamesInHTML($absolute) {
if (is_array($this->theParts['html']['media'])) {
- foreach ($this->theParts['html']['media'] as $key, $val) {
+ foreach ($this->theParts['html']['media'] as $key => $val) {
if ($val['use_jumpurl'] && $this->jumperURL_prefix) {
$subst = $this->jumperURL_prefix.t3lib_div::rawUrlEncodeFP($val['absRef']);
} else {
@@ -1404,7 +1404,7 @@
* @return string the regular expression
*/
public function tag_regex($tags) {
- $tags = (!is_array($tags) ? array($tags) ? $tags);
+ $tags = (!is_array($tags) ? array($tags) : $tags);
$regexp = '';
$c = count($tags);
foreach($tags as $tag) {