From aa5a61baefce2e54bd080de0a0e0c140b0098c3b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 15 Jun 2019 17:12:36 -0400 Subject: [PATCH] Fix variable by reference notice in Module\Admin\Federation - Addresses https://github.com/friendica/friendica/issues/6918#issuecomment-502347979 --- src/Module/Admin/Federation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])) {