e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

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

            $results[E_MESSAGE_SUCCESS][$start] = str_replace('[x]', $cnt, ADLAN_PM_73);
Severity: Minor
Found in e107_plugins/pm/pm_conf.php by phan

Invalid offset "size" of array type array{limit:mixed}|array{new:0}|array{new:int}
Open

                $pm_info['inbox']['limit_val'] = ($this->pmPrefs['pm_limits'] == 1 ? varset($pm_info['inbox']['total'],'') : varset($pm_info['inbox']['size'],''));
Severity: Minor
Found in e107_plugins/pm/pm_func.php by phan

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

                $exclude = (getperms('0') && deftrue('e_DEBUG')) ? false : true;
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Suspicious array access to nullable ?array
Open

if(!varset($_POST['edit']) && ($_GET['mode']=="list" || !$_GET['mode']))
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Variable $poll_vote_userclass is undeclared
Open

        $_POST['pollUserclass'] = (($poll_vote_userclass == e_UC_PUBLIC) && $poll_storage_method == 2) ? e_UC_MEMBER : $poll_vote_userclass;
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Argument 2 (nostrip) is '' but \e_parse::toDB() takes bool|false defined at /code/e107_handlers/e_parse_class.php:508
Open

    $topic_id         = $tp->toDB($_GET['topic'],'');
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

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

$SIGNIN_WRAPPER['signin']['SIGNIN_SIGNUP_HREF'] = '<li class="nav-item"><a class="nav-link" href="{---}">{LAN=LAN_LOGINMENU_3}</a></li>';

Argument 3 (target) is null but \e_admin_form_ui::open() takes string defined at /code/e107_handlers/form_handler.php:153
Open

            $ret =  $frm->open('social','post',null, 'class=form-horizontal');
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Catching undeclared class \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
Open

            catch (\Hybridauth\Exception\InvalidArgumentException $e)
Severity: Critical
Found in e107_plugins/social/admin_config.php by phan

Call to method getMessage from undeclared class \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
Open

                e107::getMessage()->addError("[{$e->getCode()}] {$e->getMessage()}");
Severity: Critical
Found in e107_plugins/social/admin_config.php by phan

Argument 1 (name) is 'twitter:title' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('twitter:title', $title);
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Argument 2 (content) is array|string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:image',$siteLogo);
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Argument 4 (filter_mask) is null but \e107::getLayouts() takes string defined at /code/e107_handlers/e107_class.php:3574
Open

        $templates = e107::getLayouts('social','social_xurl', 'front', null, false, false);
Severity: Minor
Found in e107_plugins/social/e_menu.php by phan

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

     $SOCIAL_XURL_TEMPLATE['default']['start'] = '<p class="xurl-social-icons hidden-print">';

Assigning int to property but \TagCloud->minLength is null
Open

    $this->minLength = $minLength;

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

            $text .= "</div>";

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

        $text .= "</table>

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

            $text .= "\n";

Variable $text is undeclared
Open

        return $text;

Unused result of a string literal "[\n {title: 'None', value: ''},\n {title: 'Link', value: 'btn btn-link'},\n {title: 'Alert Link', value: 'alert-link'},\n {title: 'Button (Default)', value: 'btn btn-default'},\n {title: 'Button (Primary)', value: 'btn btn-primary'},\n {title: 'Button (Success)', value: 'btn btn-success'},\n {title: 'Button (Info)', value: 'btn btn-info'},\n {title: 'Button (Warning)', value: 'btn btn-warning'},\n {title: 'Button (Danger)', value: 'btn btn-danger'}\n ]" near this line
Open

        $ret['link_class_list'] = $this->getLinkClassList(); "[
Severity
Category
Status
Source
Language