mirror of
https://github.com/kevachat/webapp.git
synced 2025-09-01 16:42:04 +00:00
skip empty pin list value
This commit is contained in:
parent
6711f53c3a
commit
4384cf36d5
@ -102,10 +102,13 @@ class ModuleController extends AbstractController
|
||||
// Create rooms list
|
||||
$list = [];
|
||||
|
||||
if ($this->getParameter('app.kevacoin.room.namespaces.pinned'))
|
||||
{
|
||||
foreach ((array) explode('|', $this->getParameter('app.kevacoin.room.namespaces.pinned')) as $room)
|
||||
{
|
||||
$list[] = $room;
|
||||
}
|
||||
}
|
||||
|
||||
// Append custom valid namespace to the rooms list menu
|
||||
if (!in_array($request->get('namespace'), $list) && preg_match('/^N[A-z0-9]{33}$/', $request->get('namespace')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user