mirror of
https://github.com/valentineus/moodle-billingpatch.git
synced 2025-07-03 19:20:27 +03:00
Correcting the remarks of the code analyzer
This commit is contained in:
@ -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));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user