remove getUrl fix

This commit is contained in:
fredtempez 2021-01-09 13:49:25 +01:00
parent 29a2524231
commit f86eee254c

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;
}
}