e107inc/e107

View on GitHub
e107_admin/notify.php

Summary

Maintainability
A
0 mins
Test Coverage
F
44%

Reference to undeclared constant \NT_LAN_1
Open

    protected $menuTitle = NT_LAN_1;
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to nullable ?array
Open

        $ret['include']     = $_POST['event'][$id]['include'];
Severity: Minor
Found in e107_admin/notify.php by phan

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

if (!getperms('O')) 
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to true
Open

                ".$uc->uc_dropdown('event['.$id.'][class]', varset($this->notify_prefs['event'][$id]['class'], e_UC_NOBODY), implode(',',$ucDropList),['id'=>'event-'.$id] /*"onchange=\"mail_field(this.value,'event_".$id."');\" "*/);
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to true
Open

                    $inputs .= e107::callMethod($plg.'_notify',$route['field'],"event[".$id."][".$k."]",varset($this->notify_prefs['event'][$id]['recipient']));
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to true
Open

                $value = $tp -> toForm(varset($this->notify_prefs['event'][$id]['email']));
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to true
Open

            if(varset($this->notify_prefs['event'][$id]['class']) == 'email')
Severity: Minor
Found in e107_admin/notify.php by phan

Argument 4 (extra_js) is array{id:string} but \user_class::uc_dropdown() takes string defined at /code/e107_handlers/userclass_class.php:459
Open

                ".$uc->uc_dropdown('event['.$id.'][class]', varset($this->notify_prefs['event'][$id]['class'], e_UC_NOBODY), implode(',',$ucDropList),['id'=>'event-'.$id] /*"onchange=\"mail_field(this.value,'event_".$id."');\" "*/);
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to true
Open

        if(isset($this->notify_prefs['event'][$id]['class']) && $this->notify_prefs['event'][$id]['class'] != e_UC_NOBODY)
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to true
Open

                    $disp = (varset($this->notify_prefs['event'][$id]['class']) == $k) ? 'display:visible' : 'display:none';
Severity: Minor
Found in e107_admin/notify.php by phan

Suspicious array access to nullable ?array
Open

        $ret['legacy']         = $_POST['event'][$id]['legacy'];
Severity: Minor
Found in e107_admin/notify.php by phan

true to array comparison
Open

        if($this->notify_prefs['event'][$id] !== $ret)
Severity: Info
Found in e107_admin/notify.php by phan

There are no issues that match your filters.

Category
Status