Browse Source

skip empty pin list value

main
ghost 6 months ago
parent
commit
4384cf36d5
  1. 7
      src/Controller/ModuleController.php

7
src/Controller/ModuleController.php

@ -102,9 +102,12 @@ class ModuleController extends AbstractController @@ -102,9 +102,12 @@ class ModuleController extends AbstractController
// Create rooms list
$list = [];
foreach ((array) explode('|', $this->getParameter('app.kevacoin.room.namespaces.pinned')) as $room)
if ($this->getParameter('app.kevacoin.room.namespaces.pinned'))
{
$list[] = $room;
foreach ((array) explode('|', $this->getParameter('app.kevacoin.room.namespaces.pinned')) as $room)
{
$list[] = $room;
}
}
// Append custom valid namespace to the rooms list menu

Loading…
Cancel
Save