mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 00:10:24 +00:00
Fix errors in leistungsschutzrecht addon
This commit is contained in:
parent
a53d5ae29b
commit
ee1a917612
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@
|
||||||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\App;
|
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
|
@ -149,7 +148,7 @@ function leistungsschutzrecht_is_member_site(string $url): bool
|
||||||
$cleanedurlpart = explode('%', $urldata['host']);
|
$cleanedurlpart = explode('%', $urldata['host']);
|
||||||
|
|
||||||
$hostname = explode('.', $cleanedurlpart[0]);
|
$hostname = explode('.', $cleanedurlpart[0]);
|
||||||
if (empty($hostname)) {
|
if ($hostname === false || $hostname === '') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue