mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
#4299: Wrap even more potentially undefined constants
In: * Admin-UI * Forums
This commit is contained in:
@@ -315,10 +315,10 @@ class e107forum
|
||||
|
||||
$postInfo['post_id'] = $this->postAdd($postInfo); // save it.
|
||||
|
||||
$postInfo['user_name'] = USERNAME;
|
||||
$postInfo['user_email'] = USEREMAIL;
|
||||
$postInfo['user_image'] = USERIMAGE;
|
||||
$postInfo['user_signature'] = USERSIGNATURE;
|
||||
$postInfo['user_name'] = defset('USERNAME');
|
||||
$postInfo['user_email'] = defset('USEREMAIL');
|
||||
$postInfo['user_image'] = defset('USERIMAGE');
|
||||
$postInfo['user_signature'] = defset('USERSIGNATURE');
|
||||
|
||||
if($_POST['insert'] == 1)
|
||||
{
|
||||
|
@@ -365,14 +365,14 @@ $forumstring = $forstr . $forthr . vartrue($forrep) . $forend;
|
||||
//---- Orphan $currentUser???
|
||||
$threadsViewed = explode(',', $currentUser['user_plugin_forum_viewed']);
|
||||
|
||||
if ($thread->threadInfo['thread_lastpost'] > USERLV && !in_array($thread->threadId, $threadsViewed))
|
||||
if ($thread->threadInfo['thread_lastpost'] > defset('USERLV') && !in_array($thread->threadId, $threadsViewed))
|
||||
{
|
||||
$tst = $forum->threadMarkAsRead($thread->threadId);
|
||||
$mes->addDebug("Marking Forum as read: ".$thread->threadId." result: ".$tst);
|
||||
}
|
||||
else
|
||||
{
|
||||
$ret = array('lastpost'=>$thread->threadInfo['thread_lastpost'], 'lastvisit'=>USERLV, 'thread'=>$thread->threadId, 'viewed'=>$threadsViewed);
|
||||
$ret = array('lastpost'=>$thread->threadInfo['thread_lastpost'], 'lastvisit'=>defset('USERLV'), 'thread'=>$thread->threadId, 'viewed'=>$threadsViewed);
|
||||
e107::getDebug()->log($ret);
|
||||
unset($ret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user