e107inc/e107

View on GitHub
e107_plugins/forum/forum_viewtopic.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Reference to undeclared property \e107ForumThread->threadInfo
Open

$moderatorUserIds = $forum->getModeratorUserIdsByThreadId($thread->threadInfo['thread_id']);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Variable $currentUser is undeclared
Open

$threadsViewed = explode(',', $currentUser['user_plugin_forum_viewed']);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Argument 3 (default) is 'Forum' but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

    $forumTitle = empty($FORUMCAPTION) ? e107::pref('forum','title', LAN_PLUGIN_FORUM_NAME) : $tp->parseTemplate($FORUMCAPTION, true, $sc);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Reference to undeclared property \e107ForumThread->threadInfo
Open

$forum->modArray = $forum->forumGetMods($thread->threadInfo['forum_moderators']);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Suspicious array access to nullable ?array|?array{post_options:mixed,thread_sef:array|string|string[],thread_active:mixed}|?array{post_options:mixed}|?array{thread_active:mixed}|?array{thread_sef:array|string|string[]}|?string|?string[]|?true|array{thread_start:false}
Open

        if($postInfo['post_status'])
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Argument 3 (row) is null but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

    $url = e107::url('forum','index', null, ['mode'=>'full']);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

define('MODERATOR', (USER && in_array(USERID, $moderatorUserIds) || getperms('0') ));
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Reference to undeclared property \e107ForumThread->threadInfo
Open

    $forum->threadIncview($thread->threadInfo['thread_id']);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Variable $sql is undeclared
Open

    if($sql->gen($_qry))
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Variable $forrep is undeclared
Open

unset($forrep);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Argument 3 (row) is '' but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

    $editURL = e107::url('forum','post','', array('query'=> $editQRY));
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Reference to undeclared property \e107ForumThread->threadInfo
Open

    $thread->threadInfo = $forum->threadGet($thread->threadId);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
Open

    define("META_DESCRIPTION", $tp->text_truncate(
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Reference to undeclared property \e107ForumThread->threadInfo
Open

if (USER && (USERID != $thread->threadInfo['thread_user'] || $thread->threadInfo['thread_total_replies'] > 0) || !$thread->noInc)
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Suspicious array access to nullable ?array|?array{post_options:mixed,thread_sef:array|string|string[],thread_active:mixed}|?array{post_options:mixed}|?array{thread_active:mixed}|?array{thread_sef:array|string|string[]}|?string|?string[]|?true
Open

    $loop_uid = (int)$postInfo['post_user'];
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Argument 3 (row) is 'full' but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

            $url = e107::url('forum','index','full');
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Reference to undeclared property \e107ForumThread->threadInfo
Open

$forum->set_crumb(true, '', $thread->threadInfo); // Set $BREADCRUMB (and BACKLINK)
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Argument 3 (row) is 'full' but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

            $url = e107::url('forum','index','full');
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Reference to undeclared property \e107ForumThread->threadInfo
Open

define('e_PAGETITLE', strip_tags($tp->toHTML($thread->threadInfo['thread_name'], true, 'no_hook, emotes_off')).' / '.$tp->toHTML($thread->threadInfo['forum_name'], true, 'no_hook, emotes_off').' / '.LAN_FORUM_1001);
Severity: Minor
Found in e107_plugins/forum/forum_viewtopic.php by phan

Variable $forrep was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $forrep .= $tp->parseTemplate($_style, true, $sc) . "\n";

There are no issues that match your filters.

Category
Status