mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:50:11 +00:00
Trim terms of service rules before turning them to an array
This commit is contained in:
parent
9a8f6f2150
commit
43aa9cddc5
2 changed files with 4 additions and 4 deletions
|
@ -83,8 +83,8 @@ class Tos extends BaseModule
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('tos.tpl');
|
||||
if ($this->config->get('system', 'tosdisplay')) {
|
||||
$lines = $this->config->get('system', 'tosrules');
|
||||
if (!empty($lines)) {
|
||||
$lines = trim($this->config->get('system', 'tosrules') ?: '');
|
||||
if ($lines) {
|
||||
$rules = "[list=1]";
|
||||
foreach (explode("\n", $lines) as $line) {
|
||||
$rules .= "\n[*]" . $line;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue