Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 07d8cdc

Browse files
committed
Refix group sorting. We must compare to 0.
1 parent 7c08657 commit 07d8cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/core.conf/class.AbstractAjxpUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ protected function orderRoles($r1, $r2)
553553
if(strpos($r2, "AJXP_USR_") === 0) return -1;
554554

555555
// Two groups, sort by string, will magically keep group hierarchy
556-
if(strpos($r1, "AJXP_GRP_") === false && strpos($r2, "AJXP_GRP_") === false) {
556+
if(strpos($r1, "AJXP_GRP_") === 0 && strpos($r2, "AJXP_GRP_") === 0) {
557557
return strcmp($r1,$r2);
558558
}
559559

0 commit comments

Comments
 (0)