From d686a307350a39a00560e054e1bbbecc5d259483 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 12 Dec 2017 20:34:18 +0400 Subject: Correcting the remarks of the code analyzer --- externallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'externallib.php') diff --git a/externallib.php b/externallib.php index 57d6f9d..8cab6af 100644 --- a/externallib.php +++ b/externallib.php @@ -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)); } -- cgit v1.2.3