diff --git a/upload/source/class/model/model_forum_thread.php b/upload/source/class/model/model_forum_thread.php index 4e1352a3c5356a1d478235883ede7f8cc0f411cf..833a6241cd28003876e1f39d2f5230e226959f67 100644 --- a/upload/source/class/model/model_forum_thread.php +++ b/upload/source/class/model/model_forum_thread.php @@ -160,8 +160,14 @@ class model_forum_thread extends discuz_model } if($this->param['moderated']) { - updatemodlog($this->tid, ($this->param['displayorder'] > 0 ? 'STK' : 'DIG')); - updatemodworks(($this->param['displayorder'] > 0 ? 'STK' : 'DIG'), 1); + if($this->param['displayorder'] > 0) { + updatemodlog($this->tid, 'STK'); + updatemodworks('STK', 1); + } + if($this->param['digest']) { + updatemodlog($this->tid, 'DIG'); + updatemodworks('DIG', 1); + } } $this->param['bbcodeoff'] = checkbbcodes($this->param['message'], !empty($this->param['bbcodeoff']));