mirror of
https://github.com/valentineus/moodle-billingpatch.git
synced 2025-04-28 11:21:24 +03:00
Correcting the remarks of the code analyzer
This commit is contained in:
parent
240a81f169
commit
d686a30735
@ -111,7 +111,7 @@ class local_billingpatch_external extends external_api {
|
|||||||
|
|
||||||
if ($DB->record_exists("user", array("id" => $userid, "deleted" => 0, "suspended" => 0))) {
|
if ($DB->record_exists("user", array("id" => $userid, "deleted" => 0, "suspended" => 0))) {
|
||||||
$admins = explode(",", $CFG->siteadmins);
|
$admins = explode(",", $CFG->siteadmins);
|
||||||
if ($key = array_search($userid, $admins) !== FALSE) {
|
if ($key = array_search($userid, $admins) !== false) {
|
||||||
unset($admins[$key]);
|
unset($admins[$key]);
|
||||||
set_config("siteadmins", implode(",", $admins));
|
set_config("siteadmins", implode(",", $admins));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user