Skip to content

Commit a8e1135

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

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
@@ -215,7 +215,7 @@ public function query_db($pagesize, $useinitialsbar = true) {
215215
$workflows = \tool_trigger\workflow_manager::get_workflows_paginated($this->get_page_start(), $this->get_page_size());
216216
// Sort inactive arrays to the bottom.
217217
usort($workflows, function($a, $b) {
218-
return ($a->active < $b->active);
218+
return (int)($a->active < $b->active);
219219
});
220220
$this->rawdata = $workflows;
221221
// Set initial bars.

0 commit comments

Comments
 (0)