From 5473a102007c03b0146e96a89501f9bb49edd93b Mon Sep 17 00:00:00 2001 From: Bill Griffin-Dubson Date: Thu, 10 Jun 2021 15:29:20 -0400 Subject: [PATCH] Argument 3 passed to delete_records_select() must be of the type array or null --- classes/task/cleanup_oidc_state_and_token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/task/cleanup_oidc_state_and_token.php b/classes/task/cleanup_oidc_state_and_token.php index e08d8dc..0007c6d 100644 --- a/classes/task/cleanup_oidc_state_and_token.php +++ b/classes/task/cleanup_oidc_state_and_token.php @@ -44,7 +44,7 @@ public function execute() { global $DB; // Clean up oidc state. - $DB->delete_records_select('auth_oidc_state', 'timecreated < ?', strtotime('-5 min')); + $DB->delete_records_select('auth_oidc_state', 'timecreated < ?', array(strtotime('-5 min'))); // Clean up invalid oidc token. $DB->delete_records('auth_oidc_token', ['userid' => 0]);