'username' => $row['username'],
'views' => $row['views'],
'isSticky' => $row['sticky'] ? 1 : 0,
- 'isDisabled' => $row['visible'] ? 0 : 1,
+ 'isDisabled' => $row['visible'] == 0 ? 1 : 0,
'isClosed' => $row['closed'] ? 1 : 0,
'isDeleted' => $row['deletetime'] ? 1 : 0,
'deleteTime' => $row['deletetime']
'subject' => $row['subject'],
'message' => self::fixBBCodes($row['message']),
'time' => $row['dateline'],
- 'isDisabled' => $row['visible'] ? 0 : 1,
+ 'isDisabled' => $row['visible'] == 0 ? 1 : 0,
+ 'isDeleted' => $row['visible'] == -1 ? 1 : 0,
+ 'deleteTime' => $row['visible'] == -1 ? TIME_NOW : 0,
'editorID' => $row['edituid'] ?: null,
'editor' => $row['editor'] ?: '',
'lastEditTime' => $row['edittime'],