e107inc/e107

View on GitHub
e107_admin/admin_log.php

Summary

Maintainability
A
0 mins
Test Coverage
F
37%

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

            if(getperms('0'))
Severity: Minor
Found in e107_admin/admin_log.php by phan

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

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

Assigning array<string></string> to property but \admin_log_ui->prefs is array{sys_log_perpage:array{title:'Log events to display per page',type:'dropdown',data:'int',help:'Applicable to all logs',writeParms:''},user_audit_class:array{title:'User audit trail class',type:'userclass',data:'int',help:''},user_audit_opts:array{title:'Actions to log',type:'method',data:'array',help:''},roll_log_active:array{title:'Rolling Log is active:',type:'boolean',data:'int',help:''},roll_log_days:array{title:'Rolling Log History length in days',type:'number',data:'string',help:''}}
Open

            $this->prefs['sys_log_perpage']['writeParms'] = array(10=>10, 15=>15, 20=>20, 30=>30, 40=>40, 50=>50);
Severity: Minor
Found in e107_admin/admin_log.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

    $row = $sql->retrieve("SELECT dblog_eventcode,dblog_title FROM #".$table." WHERE dblog_eventcode !='' AND dblog_title !='' GROUP BY dblog_eventcode",true);
Severity: Minor
Found in e107_admin/admin_log.php by phan

Argument 3 (selected) is '' but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
Open

            return e107::getForm()->select($selectname, $values, '', 'useValues=1&size=small');
Severity: Minor
Found in e107_admin/admin_log.php by phan

Argument 1 (input) is float but \str_pad() takes string
Open

                return date("H:i:s", intval($curVal) % 86400).'.'.str_pad(100000 * round($curVal - floor($curVal), 6), 6, '0');
Severity: Minor
Found in e107_admin/admin_log.php by phan

Reference to undeclared property \e_admin_ui->eventTypes
Open

        $array = $this->getController()->eventTypes;
Severity: Minor
Found in e107_admin/admin_log.php by phan

There are no issues that match your filters.

Category
Status