Avoid warnings in addons #639

Merged
annando merged 11 commits from warnings into develop 2018-07-10 14:30:23 +02:00
Showing only changes of commit eefb7f48bf - Show all commits

View file

@ -138,6 +138,10 @@ function leistungsschutzrecht_is_member_site($url) {
$cleanedurlpart = explode("%", $urldata["host"]);
$hostname = explode(".", $cleanedurlpart[0]);
if (empty($hostname)) {
return false;
}
$site = $hostname[sizeof($hostname) - 2].".".$hostname[sizeof($hostname) - 1];
return (isset($sites[$site]));