From 5e10d53c364602af74db98962ef09e2d8a365dcc Mon Sep 17 00:00:00 2001 From: halworsen Date: Tue, 13 Feb 2018 16:28:59 +0100 Subject: [PATCH] Fix newlines in project descriptions --- src/pvv/side/project.php | 2 +- www/admin/prosjekter/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pvv/side/project.php b/src/pvv/side/project.php index 93d3a9a..e46a6ce 100644 --- a/src/pvv/side/project.php +++ b/src/pvv/side/project.php @@ -7,7 +7,7 @@ class Project{ public function __construct($id, $name, $descr, $owner, $owneruname, $active){ $this->id = $id; $this->name = $name; - $this->descr = $descr; + $this->descr = explode("\n", $descr); $this->owner = $owner; $this->owneruname = $owneruname; $this->active = $active; diff --git a/www/admin/prosjekter/index.php b/www/admin/prosjekter/index.php index 7211c75..fb1ec50 100644 --- a/www/admin/prosjekter/index.php +++ b/www/admin/prosjekter/index.php @@ -89,7 +89,7 @@ $projects = array_values(array_filter(

getName() . " (ID: " . $projectID . ")"; ?>

getOwner(); ?>

-

getDescription(); ?>

+

getDescription(), "

\n

"); ?>