Avoid warnings in addons (#639)
* Avoid warnings in addons * And some warnings removed * And more ... * And some more ... * Added comment * And again ... * And again ... * Partly reworked "newmemberwidget" * And more warnings ... * The next round
This commit is contained in:
committed by
Hypolite Petovan
parent
9ec2b9390b
commit
475299e642
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user