Skip to content

Commit

Permalink
Merge pull request #5094 from rldhont/fix-view-tpl-abstract
Browse files Browse the repository at this point in the history
[Bugfix] Project abstract has to be a string for nl2br and strip_tags
  • Loading branch information
rldhont authored Dec 6, 2024
2 parents 3351164 + 8e337a9 commit 802a050
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lizmap/modules/lizmap/lib/Project/ProjectMainData.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,13 +547,13 @@ protected function readCachedData($cachedData, $requiredTargetLwcVersion, $appCo
);

$qgisCachedData = $cachedData['qgis']['data'];
if (array_key_exists('title', $qgisCachedData)) {
if (array_key_exists('title', $qgisCachedData) && !is_null($qgisCachedData['title'])) {
$data['title'] = $qgisCachedData['title'];
}
if (array_key_exists('abstract', $qgisCachedData)) {
if (array_key_exists('abstract', $qgisCachedData) && !is_null($qgisCachedData['abstract'])) {
$data['abstract'] = $qgisCachedData['abstract'];
}
if (array_key_exists('keywordList', $qgisCachedData)) {
if (array_key_exists('keywordList', $qgisCachedData) && !is_null($qgisCachedData['keywordList'])) {
$data['keywordList'] = $qgisCachedData['keywordList'];
}

Expand Down

0 comments on commit 802a050

Please sign in to comment.