mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-02-02 01:54:13 +00:00
convert arrays to objects
This commit is contained in:
parent
5909fcaf4a
commit
178af37a7c
@ -196,7 +196,10 @@ try
|
|||||||
{
|
{
|
||||||
if ($infoHash = $db->getInfoHash($result->infoHashId))
|
if ($infoHash = $db->getInfoHash($result->infoHashId))
|
||||||
{
|
{
|
||||||
$xt[$infoHash->version] = $infoHash->value;
|
$xt[] = (object) [
|
||||||
|
'version' => $infoHash->version,
|
||||||
|
'value' => $infoHash->value,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -299,11 +302,11 @@ try
|
|||||||
'timeUpdated' => $magnet->timeUpdated,
|
'timeUpdated' => $magnet->timeUpdated,
|
||||||
'dn' => $magnet->dn,
|
'dn' => $magnet->dn,
|
||||||
'xl' => $magnet->xl,
|
'xl' => $magnet->xl,
|
||||||
'xt' => (array) $xt,
|
'xt' => (object) $xt,
|
||||||
'kt' => (array) $kt,
|
'kt' => (object) $kt,
|
||||||
'tr' => (array) $tr,
|
'tr' => (object) $tr,
|
||||||
'as' => (array) $as,
|
'as' => (object) $as,
|
||||||
'xs' => (array) $xs,
|
'xs' => (object) $xs,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user