1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

SubmitNews: Added USERID to table.

This commit is contained in:
Cameron 2016-08-30 14:20:38 -07:00
parent d075e4807e
commit bba40d458c
2 changed files with 2 additions and 0 deletions

View File

@ -467,6 +467,7 @@ CREATE TABLE submitnews (
submitnews_id int(10) unsigned NOT NULL auto_increment,
submitnews_name varchar(100) NOT NULL default '',
submitnews_email varchar(100) NOT NULL default '',
submitnews_user int(10) unsigned NOT NULL default '0',
submitnews_title varchar(200) NOT NULL default '',
submitnews_category tinyint(3) unsigned NOT NULL default '0',
submitnews_item text NOT NULL,

View File

@ -178,6 +178,7 @@ class submitNews
'submitnews_id' => 0,
'submitnews_name' => $submitnews_user,
'submitnews_email' => $submitnews_email,
'submitnews_user' => USERID,
'submitnews_title' => $submitnews_title,
'submitnews_category' => intval($_POST['cat_id']),
'submitnews_item' => $submitnews_item,