mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
parent
bc16b7c25f
commit
f4ad0a2351
@ -430,6 +430,7 @@ class Thread
|
||||
);
|
||||
|
||||
// Perform the cleaning
|
||||
if (count($rows) > 0) {
|
||||
$revision = self::nextRevision();
|
||||
foreach ($rows as $row) {
|
||||
$thread = Thread::createFromDbInfo($row);
|
||||
@ -437,9 +438,10 @@ class Thread
|
||||
$thread->modified = $now;
|
||||
$thread->closed = $now;
|
||||
$thread->state = self::STATE_CLOSED;
|
||||
$thread->save();
|
||||
$thread->save(false);
|
||||
unset($thread);
|
||||
}
|
||||
}
|
||||
|
||||
// Release the lock
|
||||
$lock->release();
|
||||
|
Loading…
Reference in New Issue
Block a user