From a8e11358e305faed5a805c8a929535099d1d2a7e Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Tue, 12 Aug 2025 11:09:32 +1000 Subject: [PATCH] issue #242: fix usort(): Returning bool from comparison function is deprecated --- classes/output/manageworkflows/renderable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/output/manageworkflows/renderable.php b/classes/output/manageworkflows/renderable.php index 1a57c97..264f584 100644 --- a/classes/output/manageworkflows/renderable.php +++ b/classes/output/manageworkflows/renderable.php @@ -215,7 +215,7 @@ public function query_db($pagesize, $useinitialsbar = true) { $workflows = \tool_trigger\workflow_manager::get_workflows_paginated($this->get_page_start(), $this->get_page_size()); // Sort inactive arrays to the bottom. usort($workflows, function($a, $b) { - return ($a->active < $b->active); + return (int)($a->active < $b->active); }); $this->rawdata = $workflows; // Set initial bars.