Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -48,7 +48,15 @@ class _Upgrade
|
||||
$did++;
|
||||
|
||||
$forum = \IPS\forums\Forum::constructFromData( $forum );
|
||||
$forum->setLastComment();
|
||||
|
||||
try
|
||||
{
|
||||
$forum->setLastComment();
|
||||
}
|
||||
catch( \Throwable )
|
||||
{
|
||||
/* This may error if columns are not present, so if it doesn't work, skip it. Later steps take care of it anyway. */
|
||||
}
|
||||
|
||||
$forum->queued_topics = \IPS\Db::i()->select( 'COUNT(*)', 'forums_topics', array( 'forum_id=? AND approved=0', $forum->id ) )->first();
|
||||
$forum->queued_posts = \IPS\Db::i()->select( 'COUNT(*)', 'forums_posts', array( 'forums_topics.forum_id=? AND forums_posts.queued=1', $forum->id ) )->join( 'forums_topics', 'forums_topics.tid=forums_posts.topic_id' )->first();
|
||||
|
||||
Reference in new issue
Block a user