From: Hypolite Petovan Date: Sat, 15 Jun 2019 21:12:36 +0000 (-0400) Subject: Fix variable by reference notice in Module\Admin\Federation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa5a61baefce2e54bd080de0a0e0c140b0098c3b;p=friendica.git Fix variable by reference notice in Module\Admin\Federation - Addresses https://github.com/friendica/friendica/issues/6918#issuecomment-502347979 --- diff --git a/src/Module/Admin/Federation.php b/src/Module/Admin/Federation.php index 9c52845b93..8776f21e19 100644 --- a/src/Module/Admin/Federation.php +++ b/src/Module/Admin/Federation.php @@ -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])) {