mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
removed warning
This commit is contained in:
@@ -50,7 +50,8 @@ function smarty_block_textformat($params, $content, &$smarty)
|
|||||||
|
|
||||||
// split into paragraphs
|
// split into paragraphs
|
||||||
$paragraphs = preg_split('![\r\n][\r\n]!',$content);
|
$paragraphs = preg_split('![\r\n][\r\n]!',$content);
|
||||||
|
$output = '';
|
||||||
|
|
||||||
foreach($paragraphs as $paragraph) {
|
foreach($paragraphs as $paragraph) {
|
||||||
if($paragraph == '') {
|
if($paragraph == '') {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user