Skip to content

Commit 4397923

Browse files
committed
issue #242: fix usort(): Returning bool from comparison function is deprecated
1 parent 2a03757 commit 4397923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/output/manageworkflows/renderable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function query_db($pagesize, $useinitialsbar = true) {
201201
$workflows = \tool_trigger\workflow_manager::get_workflows_paginated($this->get_page_start(), $this->get_page_size());
202202
// Sort inactive arrays to the bottom.
203203
usort($workflows, function($a, $b) {
204-
return ($a->active < $b->active);
204+
return (int)($a->active < $b->active);
205205
});
206206
$this->rawdata = $workflows;
207207
// Set initial bars.

0 commit comments

Comments
 (0)