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.