* forums.moderators - removed NULL

This commit is contained in:
Visman 2018-11-05 15:40:18 +07:00
parent c7891988a9
commit 4955257010
2 changed files with 2 additions and 1 deletions

View file

@ -384,6 +384,7 @@ class Forums extends Admin
if (empty($args['id'])) {
$message = 'Forum added redirect';
$forum->disp_position = $this->forumPos($forum);
$forum->moderators = '';
$this->c->forums->insert($forum);
} else {
$message = 'Forum updated redirect';

View file

@ -567,7 +567,7 @@ class Install extends Page
'forum_name' => ['VARCHAR(80)', false, 'New forum'],
'forum_desc' => ['TEXT', false],
'redirect_url' => ['VARCHAR(255)', false, ''],
'moderators' => ['TEXT', true],
'moderators' => ['TEXT', false],
'num_topics' => ['MEDIUMINT(8) UNSIGNED', false, 0],
'num_posts' => ['MEDIUMINT(8) UNSIGNED', false, 0],
'last_post' => ['INT(10) UNSIGNED', true],