Function updateLastMessages
Takes an array of board IDs and updates their last messages. If the board has a parent, that parent board is also automatically updated. The columns updated are id_last_msg and last_updated. Note that id_last_msg should always be updated using this function, and is not automatically updated upon other changes.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Post.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Post.php
array |
$setboards |
An array of board IDs |
integer |
$id_msg = 0 |
The ID of the message |
|false
|
Returns false if $setboards is empty for some reason |