Skip to content

Commit

Permalink
ProjectMainData
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Dec 6, 2024
1 parent b349e61 commit 4c0ff69
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lizmap/modules/lizmap/lib/Project/ProjectMainData.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,6 @@ protected function readCachedData($cachedData, $requiredTargetLwcVersion, $appCo
$cfgContent = $cachedData['cfg'];

$data = array(
'title' => '',
'abstract' => '',
'keywordList' => '',
'proj' => $this->getProjOption($cfgContent),
'bbox' => $this->getBboxOption($cfgContent),
'needsUpdateError' => $this->getNeedsUpdateError($cfgContent, $requiredTargetLwcVersion),
Expand All @@ -550,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 4c0ff69

Please sign in to comment.