0
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:
Valentin Popov 2017-12-12 20:34:18 +04:00
parent 240a81f169
commit d686a30735

View File

@ -111,7 +111,7 @@ class local_billingpatch_external extends external_api {
if ($DB->record_exists("user", array("id" => $userid, "deleted" => 0, "suspended" => 0))) {
$admins = explode(",", $CFG->siteadmins);
if ($key = array_search($userid, $admins) !== FALSE) {
if ($key = array_search($userid, $admins) !== false) {
unset($admins[$key]);
set_config("siteadmins", implode(",", $admins));
}