Fixed some warning in PHP 7.1

Warning: Cannot assign an empty string to a string offset
* fixed Notice with tempnam()
This commit is contained in:
slawkens1
2017-05-04 18:32:34 +02:00
parent 636a54c70d
commit a93bd4a0fc
4 changed files with 5 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ function news_parse($title, $content, $date, $icon = 0, $author = '', $comments
$tmp = $template_path.'/images/letters/'.$content[0].'.gif';
if(file_exists($tmp)) {
$firstLetter = '<img src="' . $tmp . '" alt="'.$content[0].'" BORDER=0 ALIGN=bottom>';
$content[0] = '';
$content = substr($content, 1);
}
}