e107inc/e107

View on GitHub
e107_plugins/chatbox_menu/chatbox_menu.php

Summary

Maintainability
A
0 mins
Test Coverage
F
37%

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

    $sc = e107::getScBatch('chatbox_menu', true);

Suspicious array access to nullable ?array
Open

if((isset($_POST['chat_submit']) || e_AJAX_REQUEST) && $_POST['cmessage'] !== '')

Reference to undeclared constant \CBWIDTH
Open

    $cb_width = (defined('CBWIDTH') ? CBWIDTH : '');

Suspicious array access to nullable ?array
Open

        $nick = trim(preg_replace("#\[.*\]#s", '', $tp->toDB($_POST['nick'])));

Variable $CHATBOX_TEMPLATE was undeclared, but array fields are being added to it.
Open

        $CHATBOX_TEMPLATE['start'] = '';

Suspicious array access to nullable ?array
Open

        $cmessage = $_POST['cmessage'];

Argument 2 (id) is null but \e107::getTemplate() takes string defined at /code/e107_handlers/e107_class.php:3403
Open

        $CHATBOX_TEMPLATE = e107::getTemplate('chatbox_menu', null, 'menu');

There are no issues that match your filters.

Category
Status