mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-23 05:04:14 +00:00
fix initial magnet.timeUpdated
This commit is contained in:
parent
670d930573
commit
61bf4b9c86
Binary file not shown.
@ -542,8 +542,8 @@ class Database {
|
|||||||
|
|
||||||
$query = $this->_db->prepare('INSERT INTO `magnet` SET `userId` = ?,
|
$query = $this->_db->prepare('INSERT INTO `magnet` SET `userId` = ?,
|
||||||
`xt` = ?,
|
`xt` = ?,
|
||||||
`xl` = ?,
|
`xl` = ?,
|
||||||
`dn` = ?,
|
`dn` = ?,
|
||||||
`linkSource` = ?,
|
`linkSource` = ?,
|
||||||
`public` = ?,
|
`public` = ?,
|
||||||
`comments` = ?,
|
`comments` = ?,
|
||||||
|
@ -108,8 +108,8 @@ else
|
|||||||
'public' => (bool) $magnet->public,
|
'public' => (bool) $magnet->public,
|
||||||
'sensitive' => (bool) $magnet->sensitive,
|
'sensitive' => (bool) $magnet->sensitive,
|
||||||
'comments' => (bool) $magnet->comments,
|
'comments' => (bool) $magnet->comments,
|
||||||
'timeAdded' => Time::ago($magnet->timeAdded),
|
'timeAdded' => $magnet->timeAdded ? Time::ago((int) $magnet->timeAdded) : false,
|
||||||
'timeUpdated' => Time::ago($magnet->timeUpdated),
|
'timeUpdated' => $magnet->timeUpdated ? Time::ago((int) $magnet->timeUpdated) : false,
|
||||||
'keywords' => $keywords,
|
'keywords' => $keywords,
|
||||||
'comment' => (object)
|
'comment' => (object)
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user