mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Fix variable by reference notice in Module\Admin\Federation
- Addresses https://github.com/friendica/friendica/issues/6918#issuecomment-502347979
This commit is contained in:
parent
75894fa275
commit
aa5a61baef
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class Federation extends BaseAdminModule
|
||||||
} while (!empty($parts) && ((strlen($part) >= 40) || (strlen($part) <= 3)));
|
} while (!empty($parts) && ((strlen($part) >= 40) || (strlen($part) <= 3)));
|
||||||
// only take the x.x.x part of the version, not the "release" after the dash
|
// only take the x.x.x part of the version, not the "release" after the dash
|
||||||
if (!empty($part) && strpos($part, '-')) {
|
if (!empty($part) && strpos($part, '-')) {
|
||||||
$part = array_shift(explode('-', $part));
|
$part = explode('-', $part)[0];
|
||||||
}
|
}
|
||||||
if (!empty($part)) {
|
if (!empty($part)) {
|
||||||
if (empty($compacted[$part])) {
|
if (empty($compacted[$part])) {
|
||||||
|
|
Loading…
Reference in a new issue