Fix variable by reference notice in Module\Admin\Federation

- Addresses https://github.com/friendica/friendica/issues/6918#issuecomment-502347979
This commit is contained in:
Hypolite Petovan 2019-06-15 17:12:36 -04:00
parent 75894fa275
commit aa5a61baef
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class Federation extends BaseAdminModule
} 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
if (!empty($part) && strpos($part, '-')) {
$part = array_shift(explode('-', $part));
$part = explode('-', $part)[0];
}
if (!empty($part)) {
if (empty($compacted[$part])) {