e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Suspicious array access to nullable ?array|?array<string>|?array<string>|?array<string>|?array<string>|?bool|?string</string></string></string></string>
Open

        $curVal['user_class'] = varset($changedUserData['user_class'], $curVal['user_class']);
Severity: Minor
Found in usersettings.php by phan

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

            $signupData[$a] = $tp->toForm(varset($allData['data'][$a],''));
Severity: Info
Found in signup.php by phan

Call to deprecated class \form defined at /code/e107_handlers/form_handler.php:8340
Open

$rs = new form;
Severity: Minor
Found in signup.php by phan

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

    if (USERID == $tmp[1] || (ADMIN && getperms("4")))
Severity: Minor
Found in user.php by phan

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

        $ftext .= "<span class='mediumtext'>".UP_LAN_8.'</span>';
Severity: Info
Found in userposts.php by phan

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

                    $alldata['errors']['user_loginname'] = ERR_GENERIC;
Severity: Info
Found in usersettings.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender(LAN_SIGNUP_78, $text, 'coppa');
Severity: Minor
Found in signup.php by phan

Argument 3 (uid) is bool but \check_class() takes int defined at /code/class2.php:1207
Open

                    if (!check_class($pref['displayname_class'], $udata['user_classlist'], $adminEdit))
Severity: Minor
Found in usersettings.php by phan

Call to undeclared method \e_db::escape
Open

                $changedUserData['user_password'] = $sql->escape($userMethods->HashPassword($savePassword, $loginname), false);
Severity: Critical
Found in usersettings.php by phan

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

                $changedData['data'] = $changedUserData;
Severity: Info
Found in usersettings.php by phan

Argument 2 (args) is ?array|?array{user_class:string,user_image:mixed,user_sess:'',user_prefs:array|string,user_loginname:mixed|null,user_name:null,user_password?:null}|?array{user_email?:null,user_class:string,user_image:mixed,user_sess:'',user_prefs:array|string,user_loginname:mixed|null,user_name:null,user_password?:null}|?bool|?string but \array_merge() takes array
Open

                    $do_log = array_merge($do_log, $changedUserData);
Severity: Minor
Found in usersettings.php by phan

Argument 1 (ArrayData) is ?array|?array<string>|?array<string>|?array<string>|?array<string>|?bool|?string</string></string></string></string> but \e107::serialize() takes array defined at /code/e107_handlers/e107_class.php:2131
Open

        $updated_data       = e107::serialize($changedUserData,'json');
Severity: Minor
Found in usersettings.php by phan

Variable $sql is undeclared
Open

                $user_class_update = $sql->update("user", "user_class = '{$allData['data']['user_class']}' WHERE user_name='{$allData['data']['user_name']}' LIMIT 1");
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

echo $tp->parseTemplate($SITEDOWN_TABLE, true, $sitedown_shortcodes);
Severity: Minor
Found in sitedown.php by phan

Argument 1 (var) is ?array<string>|?array<string>|?array<string>|?array<string>|?array{user_email:mixed,user_password:,user_name:mixed}|?array{user_name:mixed}|?array{user_password:,user_name:mixed}|?array{}</string></string></string></string> but \count() takes \Countable|array
Open

                if (count($do_log))
Severity: Minor
Found in usersettings.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender($after_signup['caption'], $after_signup['text']);
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

                $text = $tp->toHTML(str_replace('{NEWLOGINNAME}', $loginname, $pref['signup_text_after']), TRUE, 'parse_sc,defs')."<br />";
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

    $text = $tp->parseTemplate($COPPA_TEMPLATE, TRUE, $signup_shortcodes);
Severity: Minor
Found in signup.php by phan

Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
Open

    if (!$data = $sql->retrieve($query,true))
Severity: Minor
Found in user.php by phan

Call to undeclared method \e_shortcode::reset
Open

        e107::getScBatch('usersettings')->setVars($curVal)->reset();
Severity: Critical
Found in usersettings.php by phan
Severity
Category
Status
Source
Language