e107inc/e107

View on GitHub
comment.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Variable $sql is undeclared
Open

                    $row = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

            if (!$sql->select("news", "news_allow_comments", "`news_id` = '{$id}' AND `news_allow_comments` = 0")) 
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    $row = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Argument 5 (pid) is int but \comment::enter_comment() takes \unknown_type|string defined at /code/e107_handlers/comment_class.php:675
Open

            $cobj->enter_comment($clean_authorname, $clean_comment, $table, $nid, $pid, $clean_subject);
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    $news = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

    if ($table == "news" && !$sql->select("news", "news_allow_comments", "news_id='{$nid}' "))
Severity: Minor
Found in comment.php by phan

Variable $tp is undeclared
Open

                    $subject = $tp->toForm($news['news_title']);
Severity: Minor
Found in comment.php by phan

Variable $tp is undeclared
Open

        $row['comment_comment']     = $tp->toDB($clean_comment);
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

            if (!$sql->select("polls", "poll_title", "`poll_id` = '{$id}' AND `poll_comment` = 1")) 
Severity: Minor
Found in comment.php by phan

Argument 5 (pid) is int but \comment::enter_comment() takes \unknown_type|string defined at /code/e107_handlers/comment_class.php:675
Open

    $cobj->enter_comment($clean_authorname, $clean_comment, $table, $id, $pid, $clean_subject);
Severity: Minor
Found in comment.php by phan

Variable $tp is undeclared
Open

        $subject_header = $tp->toHTML($comments['comment_subject']);
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    $poll = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    $row = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $tp is undeclared
Open

        $row['comment_type']        = e107::getComment()->getCommentType($tp->toDB($clean_table,true));
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if (!$sql->select("news", "news_title", "news_id='{$nid}' "))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if ($sql->select('download','download_name',"download_id={$nid} "))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    $news = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

    if ($sql->select("comments", "comment_subject", "`comment_id` = '{$id}'"))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if (!$sql->select("polls", "poll_title", "poll_id='{$nid}' "))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if ($sql->select('download','download_name',"download_id={$id} "))
Severity: Minor
Found in comment.php by phan

Variable $tp is undeclared
Open

        $row['comment_subject']     = $tp->toDB($clean_subject);
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if (!$sql->gen($query))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if ($sql->select('user','user_name',"user_id={$id} "))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    $row = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $tp is undeclared
Open

            $ret['html'] .= e107::getComment()->render_comment($row,'comments','comment', (int) $_POST['itemid'], $width, $tp->toDB($clean_subject));
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    $row = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if (!$sql->select("polls", "*", "poll_id='{$id}'"))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                    if ($sql->select($e_comment[$table]['db_table'],$e_comment[$table]['db_title'],$e_comment[$table]['db_id']."={$id} "))
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

        $row = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Argument 2 (replace) is int but \str_replace() takes array|string
Open

        $reply_location = str_replace('{NID}', $redirectFlag, $e_comment[$table]['reply_location']);
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                        $row = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Argument 5 (subject) is ?'' but \comment::compose_comment() takes string defined at /code/e107_handlers/comment_class.php:1056
Open

$cobj->compose_comment($table, $action, $field, $width, $subject, $rate=FALSE);
Severity: Minor
Found in comment.php by phan

Variable $tp is undeclared
Open

        $row['comment_author_name'] = $tp->toDB($clean_authorname);
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

            if (!$sql->select('user', 'user_name', '`user_id` ='.$id)) 
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

        $comments = $sql->fetch();
Severity: Minor
Found in comment.php by phan

Variable $sql is undeclared
Open

                if ($sql->select('user','user_name',"user_id={$nid} "))
Severity: Minor
Found in comment.php by phan

There are no issues that match your filters.

Category
Status