annulation dans getUrl

This commit is contained in:
fredtempez 2021-01-13 10:13:07 +01:00
parent d7f03521df
commit babf10f4bf
1 changed files with 1 additions and 10 deletions

View File

@ -554,16 +554,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;
}
}