10400 #3

Merged
lapervenche merged 18 commits from ZwiiCMS-Team/ZwiiCMS:10400 into 10400 2021-02-09 20:02:50 +01:00
1 changed files with 1 additions and 10 deletions
Showing only changes of commit f86eee254c - Show all commits

View File

@ -561,16 +561,7 @@ class common {
// Une partie de l'url
else {
$url = explode('/', $this->url);
if (array_key_exists($key, $url) ) {
if (strpos($url[$key],'fbclid=') === false) {
$result = $url[$key];
} else {
$result = $key === 0 ? $this->getData(['config','homePageId']) : '';
}
} else {
$result = null;
}
return $result;
return array_key_exists($key, $url) ? $url[$key] : null;
}
}