mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-02 23:20:08 +00:00
Disable message pruning if CHAT_LOG_ARCHIVETIME is set to -1
This commit is contained in:
parent
209b6d47b2
commit
0b3e4c816e
@ -26,6 +26,8 @@ class MessageAction extends \wcf\data\AbstractDatabaseObjectAction {
|
||||
* @return integer Number of deleted messages.
|
||||
*/
|
||||
public function prune() {
|
||||
if (CHAT_LOG_ARCHIVETIME == -1) return 0;
|
||||
|
||||
$sql = "SELECT
|
||||
".call_user_func(array($this->className, 'getDatabaseTableIndexName'))."
|
||||
FROM
|
||||
|
Loading…
Reference in New Issue
Block a user