projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a25658
)
GroupRights.php
author
KH Lau
<khlau@roojs.com>
Tue, 30 Jan 2018 08:04:38 +0000
(16:04 +0800)
committer
KH Lau
<khlau@roojs.com>
Tue, 30 Jan 2018 08:04:38 +0000
(16:04 +0800)
GroupRights.php
patch
|
blob
|
history
diff --git
a/GroupRights.php
b/GroupRights.php
index
b023314
..
8855714
100644
(file)
--- a/
GroupRights.php
+++ b/
GroupRights.php
@@
-88,11
+88,10
@@
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;
+
+ $rdiff = $a['rightname'] - $b['rightname'];
+ if ($rdiff) return $rdiff;
+ return $a['descript'] - $b['descript'];
});
//print_r($ar);exit;
$this->jdata($ar);