e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Assigning array<string></string> to property but \private_msg_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},pm_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_from:array{title:'From',type:'method',noedit:true,data:'int',filter:true,width:'5%%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_to:array{title:'To',type:'user',data:'int',width:'5%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_sent:array{title:'Date',type:'datestamp',data:'int',width:'15%',help:'',readParms:array{},writeParms:'auto=1&readonly=1',class:'center',thclass:'center'},pm_subject:array{title:'Subject',type:'text',data:'str',width:'15%',help:'',readParms:array{},writeParms:array{size:'xlarge'},class:'left',thclass:'left'},pm_text:array{title:'Message',type:'bbarea',data:'str',width:'40%',help:'',readParms:'expand=1&truncate=50',writeParms:'rows=5&size=block&cols=80',class:'left',thclass:'left'},pm_read:array{title:'Read',type:'boolean',noedit:1,data:'int',batch:true,filter:true,width:'5%',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_sent_del:array{title:'Delete PM',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_read_del:array{title:'Delete PM',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_attachments:array{title:'Attachment',type:'text',noedit:true,data:'str',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_option:array{title:'Option',type:'text',noedit:true,data:'str',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_size:array{title:'Size',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

                $this->fields['options']['readParms'] = 'editClass='.e_UC_NOBODY;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Assigning array<string></string> to property but \private_msg_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},pm_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_from:array{title:'From',type:'method',noedit:true,data:'int',filter:true,width:'5%%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_to:array{title:'To',type:'user',data:'int',width:'5%',help:'',readParms:array{},writeParms:array{},class:'left',thclass:'left'},pm_sent:array{title:'Date',type:'datestamp',data:'int',width:'15%',help:'',readParms:array{},writeParms:'auto=1&readonly=1',class:'center',thclass:'center'},pm_subject:array{title:'Subject',type:'text',data:'str',width:'15%',help:'',readParms:array{},writeParms:array{size:'xlarge'},class:'left',thclass:'left'},pm_text:array{title:'Message',type:'bbarea',data:'str',width:'40%',help:'',readParms:'expand=1&truncate=50',writeParms:'rows=5&size=block&cols=80',class:'left',thclass:'left'},pm_read:array{title:'Read',type:'boolean',noedit:1,data:'int',batch:true,filter:true,width:'5%',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_sent_del:array{title:'Delete PM',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_read_del:array{title:'Delete PM',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_attachments:array{title:'Attachment',type:'text',noedit:true,data:'str',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_option:array{title:'Option',type:'text',noedit:true,data:'str',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},pm_size:array{title:'Size',type:'boolean',noedit:true,data:'int',width:'auto',help:'',readParms:array{},writeParms:array{},class:'center',thclass:'center'},options:array{title:'Options',type:'method',data:null,width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

                $this->fields['pm_to']['writeParms']['required'] = 1;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Return type of logLine() is undeclared type \none
Open

    function logLine($logText, $closeAfter = FALSE, $addTimeDate = FALSE)
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Assigning null to property but \pm_cron->logHandle is false|resource
Open

            $this->logHandle = NULL;
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Variable $PM_OUTBOX_HEADER is undeclared
Open

                $PM_OUTBOX['start'] = $this->updateTemplate($PM_OUTBOX_HEADER);
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Variable $tp is undeclared
Open

        $pmSource = $tp->toDB($_POST['pm_come_from']);
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Return type of __construct() is undeclared type \none
Open

    public    function __construct($prefs=null)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Returning type true but pm_send_notify() is declared to return \none
Open

            return true;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Argument 1 (classes) is int but \user_class::getUsersInClass() takes string defined at /code/e107_handlers/userclass_class.php:1192
Open

        return e107::getUserClass()->getUsersInClass($class, 'user_name, user_email, user_class');
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Argument 2 (newvalue) is 600 but \ini_set() takes string
Open

        @ini_set("max_execution_time", 10 * 60);
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

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

            $limitList[$row['limit_classnum']] = $row;
Severity: Info
Found in e107_plugins/pm/pm_conf.php by phan

Invalid offset "pm_limits" of array type array{}
Open

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

Invalid offset "total" of array type array{}
Open

            return e107::getParser()->parseTemplate("{NEXTPREV={$this->pmNextPrev['total']},{$this->pmPrefs['perpage']},{$this->pmNextPrev['start']},".e_SELF."?{$parm}.[FROM]}");
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

            return "<input type='checkbox' name='selected_pm[{$this->pmBlocked['pm_block_from']}]' value='1' />";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Argument 6 (year) is string but \mktime() takes int
Open

        $start = mktime(0, 0, 0, 1, 1, $cur_year);
Severity: Minor
Found in e107_plugins/news/news_months_menu.php by phan

Reference to undeclared constant \ADMIN_EDIT_ICON
Open

                        <a class='btn btn-default btn-secondary btn-large' href='".e_SELF."?edit.".$data['newsletter_id']."'>".ADMIN_EDIT_ICON."</a>

Argument 3 (maxlength) is '200' but \e_form::number() takes int defined at /code/e107_handlers/form_handler.php:925
Open

            <td>".$frm->number('newsletter_', $newsletter_issue, '200')."</td>

When fetching an array index from a value of type false|int|string, found an array index of type 'key', but expected the index to be of type int
Open

        if(strpos($tmp['key'], 'newsletter') === 0)

Reference to undeclared constant \ADMIN_DELETE_ICON
Open

                                <td><a href='".e_SELF."?remove.{$p_id}.{$val}'>".ADMIN_DELETE_ICON."</a>".(($nl_row['user_ban'] > 0) ? NLLAN_62 : "")."</td>

Argument 2 (mname) is false but \e_menu::renderMenu() takes string defined at /code/e107_handlers/menu_class.php:631
Open

            return e107::getMenu()->renderMenu($parm,  false, false, true);                                    
Severity: Minor
Found in e107_plugins/page/e_shortcode.php by phan
Severity
Category
Status
Source
Language