projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
241e655
)
GroupRights.php
author
KH Lau
<khlau@roojs.com>
Tue, 30 Jan 2018 07:49:17 +0000
(15:49 +0800)
committer
KH Lau
<khlau@roojs.com>
Tue, 30 Jan 2018 07:49:17 +0000
(15:49 +0800)
GroupRights.php
patch
|
blob
|
history
diff --git
a/GroupRights.php
b/GroupRights.php
index
67b9e2c
..
40fe99e
100644
(file)
--- a/
GroupRights.php
+++ b/
GroupRights.php
@@
-86,6
+86,14
@@
class Pman_Admin_GroupRights extends Pman
);
}
+ print_r($ar);
+ usort($ar, function($a, $b) {
+ $retval = $a['rightname'] - $b['rightname'];
+ if ($retval == 0) {
+ $retval = $a['descript'] - $b['descript'];
+ }
+ return $retval;
+ });
print_r($ar);exit;
$this->jdata($ar);