mirror of
https://github.com/YGGverse/Pulsar.git
synced 2026-03-31 17:55:37 +00:00
fix returned data type
This commit is contained in:
parent
b5788d0a4e
commit
0c6e5ce8ae
1 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ class Nex implements MessageComponentInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get channel items
|
// Get channel items
|
||||||
foreach ($this->_database->getChannelItems(0, 20) as $channelItem)
|
foreach ((array) $this->_database->getChannelItems(0, 20) as $channelItem)
|
||||||
{
|
{
|
||||||
$lines[] = sprintf(
|
$lines[] = sprintf(
|
||||||
'=> /%d.gmi %s %s',
|
'=> /%d.gmi %s %s',
|
||||||
|
|
@ -205,7 +205,7 @@ class Nex implements MessageComponentInterface
|
||||||
$lines = [];
|
$lines = [];
|
||||||
|
|
||||||
// Get channels
|
// Get channels
|
||||||
foreach ($this->_database->getChannels() as $channel)
|
foreach ((array) $this->_database->getChannels() as $channel)
|
||||||
{
|
{
|
||||||
$lines[] = sprintf(
|
$lines[] = sprintf(
|
||||||
'=> /%d/index.gmi %s',
|
'=> /%d/index.gmi %s',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue