e107inc/e107

View on GitHub
e107_admin/administrator.php

Summary

Maintainability
A
0 mins
Test Coverage
F
53%

Variable $sql is undeclared
Open

    $row = $sql->fetch();
Severity: Minor
Found in e107_admin/administrator.php by phan

Argument 1 (row) is null but \e_userperms::edit_administrator() takes array|string defined at /code/e107_handlers/user_handler.php:2196
Open

    $prm->edit_administrator($row);
Severity: Minor
Found in e107_admin/administrator.php by phan

Variable $sql is undeclared
Open

    $sql->select("user", "*", "user_id= ".$aID);
Severity: Minor
Found in e107_admin/administrator.php by phan

Variable $ns is undeclared
Open

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

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

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

Call with 3 arg(s) to \e_userperms::renderPerms() which only takes 2 arg(s) defined at /code/e107_handlers/user_handler.php:2153
Open

                            ".$prm->renderperms($row['user_perms'],$row['user_id'],"words")."
Severity: Info
Found in e107_admin/administrator.php by phan

Suspicious array access to nullable ?array
Open

    $edid = array_keys($_POST['edit_admin']);
Severity: Minor
Found in e107_admin/administrator.php by phan

Variable $sql is undeclared
Open

        || !($row = $sql->fetch()))
Severity: Minor
Found in e107_admin/administrator.php by phan

Variable $sql is undeclared
Open

    if ((!$sql->select("user", "*", "user_id=".$theid))
Severity: Minor
Found in e107_admin/administrator.php by phan

Variable $sql is undeclared
Open

    $mes->addAuto($sql->update("user", "user_admin=0, user_perms='' WHERE user_id= ".$aID), 'update', ADMSLAN_61, LAN_DELETED_FAILED, false);
Severity: Minor
Found in e107_admin/administrator.php by phan

There are no issues that match your filters.

Category
Status