e107inc/e107

View on GitHub
e107_admin/prefs.php

Summary

Maintainability
A
0 mins
Test Coverage
C
73%

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

    $var['core-prefs-header1']['header'] = LAN_BASIC_OPTIONS;
Severity: Info
Found in e107_admin/prefs.php by phan

Argument 3 (expire) is null but \cookie() takes int defined at /code/class2.php:1786
Open

        cookie(e_COOKIE, null, null);
Severity: Minor
Found in e107_admin/prefs.php by phan

Call with 2 arg(s) to \e_form::help() which only takes 1 arg(s) defined at /code/e107_handlers/form_handler.php:3230
Open

                        <td><label for='forumdate'>".PRFLAN_24."</label>".$frm->help(PRFLAN_83.": ".$date3,'before')."</td>
Severity: Info
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Hide'} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio($value, 0, !$pref[$value], array('label' => CUSTSIG_12))."
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 1 (class) is int but \e_file::getAllowedFileTypes() takes string defined at /code/e107_handlers/file_class.php:2548
Open

            $data = $fl->getAllowedFileTypes($class);
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Hide',disabled:true} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio('disable_emailcheck', 2, ($pref['disable_emailcheck']==2), array('label' => CUSTSIG_12, 'disabled'=>true))."
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Required'} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio('disable_emailcheck', 0, (intval($pref['disable_emailcheck']) == 0), array('label' => CUSTSIG_15))."
Severity: Minor
Found in e107_admin/prefs.php by phan

Call with 2 arg(s) to \e_form::help() which only takes 1 arg(s) defined at /code/e107_handlers/form_handler.php:3230
Open

                        <td><label for='predefinedloginname'>".PRFLAN_192.":</label>".$frm->help($predefinedloginnameHelp,'before')."</td>
Severity: Info
Found in e107_admin/prefs.php by phan

Argument 3 (uc_options) is 'nobody,guest,new,bots,public,member,admin,main,classes' but \e_form::uc_select() takes null defined at /code/e107_handlers/form_handler.php:3478
Open

                            $frm->uc_select('comments_moderate', $pref['comments_moderate'],"nobody,guest,new,bots,public,member,admin,main,classes").
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 2 (value) is null but \cookie() takes string defined at /code/class2.php:1786
Open

        cookie(e_COOKIE, null, null);
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Display'} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio($value, 1, ($pref[$value] == 1), array('label' => CUSTSIG_14))."
Severity: Minor
Found in e107_admin/prefs.php by phan

Suspicious type true of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

                e107::getMessage()->addDebug("Created ".$result); // NO LAN. 
Severity: Minor
Found in e107_admin/prefs.php by phan

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

        $adminlist[] = $file;
Severity: Info
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Hide'} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio('signup_option_password', 0, !$prefOptionPassword, array('label' => CUSTSIG_12))."
Severity: Minor
Found in e107_admin/prefs.php by phan

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

    $authlist[] = "e107";
Severity: Info
Found in e107_admin/prefs.php by phan

Argument 1 (class) is 253 but \e_file::getAllowedFileTypes() takes string defined at /code/e107_handlers/file_class.php:2548
Open

                $data = $fl->getAllowedFileTypes(e_UC_MEMBER);
Severity: Minor
Found in e107_admin/prefs.php by phan

Call with 2 arg(s) to \e_form::help() which only takes 1 arg(s) defined at /code/e107_handlers/form_handler.php:3230
Open

                        <td><label for='shortdate'>".PRFLAN_22."</label>".$frm->help(PRFLAN_83.": ".$date1,'before')."</td>
Severity: Info
Found in e107_admin/prefs.php by phan

Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

                    $PRFLAN_154a = str_replace($srch,$repl, PRFLAN_154a);
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Display',disabled:true} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio('signup_option_password', 1, ($prefOptionPassword == 1), array('label' => CUSTSIG_14, 'disabled'=>true))."
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Required'} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio($value, 2, ($pref[$value] == 2), array('label' => CUSTSIG_15))."
Severity: Minor
Found in e107_admin/prefs.php by phan

Variable $ns is undeclared
Open

$ns->tablerender(null, $mes->render().$text);
Severity: Minor
Found in e107_admin/prefs.php by phan

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

if(!getperms("1"))
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 3 (optlist) is null but \user_class::uc_dropdown() takes string defined at /code/e107_handlers/userclass_class.php:459
Open

                            ".$e_userclass->uc_dropdown('contact_visibility', varset( $pref['contact_visibility'],e_UC_PUBLIC), null, "tabindex='".$frm->getNext()."'")."
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Display'} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio('disable_emailcheck', 1, (intval($pref['disable_emailcheck']) == 1), array('label' => CUSTSIG_14))."
Severity: Minor
Found in e107_admin/prefs.php by phan

Argument 4 (options) is array{label:'Required'} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2928
Open

                                ".$frm->radio('signup_option_password', 2, ($prefOptionPassword == 2), array('label' => CUSTSIG_15))."
Severity: Minor
Found in e107_admin/prefs.php by phan

There are no issues that match your filters.

Category
Status