e107inc/e107

View on GitHub
e107_plugins/pm/admin_config.php

Summary

Maintainability
A
0 mins
Test Coverage
F
7%

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

if (!getperms('P')) 
Severity: Minor
Found in e107_plugins/pm/admin_config.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/admin_config.php by phan

Reference to undeclared property \private_msg_ui->sql
Open

                    $results[E_MESSAGE_ERROR][$start] = str_replace(array('[y]', '[z]'), array($this->sql->getLastErrorNum, $this->sql->getLastErrorText), ADLAN_PM_70);
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['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

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

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

Argument 2 (checked_enabled) is '' but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
Open

                    <td>".$frm->radio_switch('pm_maint_expired', '', LAN_YES, LAN_NO)."</td>
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 1 (uid) is null but \private_message::pm_send_notify() takes int defined at /code/e107_plugins/pm/pm_class.php:379
Open

            if($pm->pm_send_notify(null,$pmInfo, 1) === true)
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Assigning array<string></string> to property but \pm_admin->adminMenu is array<string>&gt;|array{main/prefs:array{caption:'Preferences',perm:'P'},main/limits:array{caption:'Limits',perm:'P'},main/maint:array{caption:'Maintenance',perm:'P'},main/null:array{divider:true},inbox/list:array{caption:'Inbox',perm:'P'},outbox/list:array{caption:'Outbox',perm:'P'},outbox/create:array{caption:'Send New Message',perm:'P'}}</string>
Open

            $this->adminMenu['main/list']   = array('caption'=> "Log", 'perm' => 'P');
Severity: Minor
Found in e107_plugins/pm/admin_config.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/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['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_subject']['writeParms']['default'] = "Re: ". base64_decode($_GET['subject']);
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 2 (checked_enabled) is '' but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
Open

                <td>".$frm->radio_switch('pm_maint_sent', '', LAN_YES, LAN_NO)."</td>
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 2 (checked_enabled) is '' but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
Open

                <td>".$frm->radio_switch('pm_maint_attach', '', LAN_YES, LAN_NO)."</td>
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

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

                $results[E_MESSAGE_SUCCESS][$start] = str_replace('[x]', $cnt, ADLAN_PM_74);
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['options']['readParms'] = 'editClass='.e_UC_NOBODY;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 2 (fname) is true but \e107::lan() takes string defined at /code/e107_handlers/e107_class.php:3987
Open

e107::lan('pm',true);
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Reference to undeclared property \private_msg_ui->sql
Open

                    $results[E_MESSAGE_ERROR][$start] = str_replace(array('[y]', '[z]'), array($this->sql->getLastErrorNum, $this->sql->getLastErrorText), ADLAN_PM_70);
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

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/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']['default'] = 99999999;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 2 (checked_enabled) is '' but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
Open

                <td>".$frm->radio_switch('pm_maint_blocked', '', LAN_YES, LAN_NO)."</td>
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']['nolist'] = true;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Assigning array<string></string> to property but \private_msg_ui->prefs is array{title:array{title:'Plugin Title',tab:0,type:'text',data:'str',help:''},pm_class:array{title:'Restrict PM use to',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},sendall_class:array{title:'Allow sending to all members',tab:1,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},send_to_class:array{title:'Users may only send messages to users in this class',tab:0,type:'method',data:'str',help:''},vip_class:array{title:'VIP Class',tab:0,type:'userclass',data:'int',help:'Users in this class can only receive messages from others in this class. Overrides the above preference.',writeParms:array{size:'xlarge',classlist:'nobody,main,admin,classes'}},multi_class:array{title:'Userclass which may send to more than one user at a time',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},opt_userclass:array{title:'Userclass which may to send to entire userclasses',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},animate:array{title:'Show new PM animation',tab:1,type:'boolean',data:'str',help:''},read_timeout:array{title:'READ message timeout \x28days\x29',tab:1,type:'number',data:'int',help:''},unread_timeout:array{title:'UNREAD message timeout \x28days\x29',tab:1,type:'number',data:'int',help:''},popup:array{title:'Popup notification on new PM',tab:1,type:'boolean',data:'int',help:''},popup_delay:array{title:'Popup delay timeout',tab:1,type:'number',data:'int',help:'',writeParms:array{post:'seconds',tdClassRight:'form-inline'}},notify_class:array{title:'Enable PM email notifications',tab:1,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},receipt_class:array{title:'Allow user to request read receipt email notifications',tab:1,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},attach_class:array{title:'Userclass which may include attachments',tab:0,type:'userclass',data:'int',help:'',writeParms:array{size:'xlarge',classlist:'nobody,main,member,admin,classes'}},attach_size:array{title:'Maximum attachment size',tab:1,type:'number',data:'int',help:'',writeParms:'tdClassRight=form-inline&post=Kb'},pm_max_send:array{title:'Maximum number of PMs to send immediately',tab:1,type:'number',data:'int',help:''},perpage:array{title:'Number of PMs to show per page',tab:0,type:'number',data:'int',help:''},maxlength:array{title:'Maximum message length',tab:1,type:'number',data:'int',help:'0 = unlimited',writeParms:array{post:'chars.'}}}
Open

                $this->prefs['notify_class']['writeParms']['post']= e107::getForm()->button('testNotify', 1, 'primary', ADLAN_PM_91);
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_from']['nolist'] = true;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

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

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

Argument 1 (str) is int but \md5() takes string
Open

            $pmInfo = array ( 'numsent' => '1', 'pm_to' => USERID, 'pm_sent'=>time(), 'pm_userclass' => false, 'pm_subject' => 'Test Subject Random:'.md5(time()), 'pm_message' => 'Test Message '.md5(time()), 'postpm' => 'Send Private Message', 'keyword' => NULL,
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']['default'] = intval($_GET['to']);
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 2 (value) is 1 but \e_form::button() takes array|string defined at /code/e107_handlers/form_handler.php:3876
Open

                $this->prefs['notify_class']['writeParms']['post']= e107::getForm()->button('testNotify', 1, 'primary', ADLAN_PM_91);
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_subject']['writeParms']['required'] = 1;
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

Argument 2 (checked_enabled) is '' but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
Open

                <td>".$frm->radio_switch('pm_maint_rec', '', LAN_YES, LAN_NO)."</td>
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

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

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

There are no issues that match your filters.

Category
Status