projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70eb2e3
)
DataObjects/Core_group.php
author
Edward
<edward@roojs.com>
Tue, 18 Sep 2018 06:00:17 +0000
(14:00 +0800)
committer
Edward
<edward@roojs.com>
Tue, 18 Sep 2018 06:00:17 +0000
(14:00 +0800)
DataObjects/Core_group.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_group.php
b/DataObjects/Core_group.php
index
862cad8
..
3083151
100644
(file)
--- a/
DataObjects/Core_group.php
+++ b/
DataObjects/Core_group.php
@@
-264,13
+264,21
@@
class Pman_Core_DataObjects_Core_group extends DB_DataObject
function postListFilter($ar, $au, $req)
{
function postListFilter($ar, $au, $req)
{
- if(empty($req['_add_everyone'])){
- return $ar;
+ $ret = array();
+
+ if(!empty($req['_is_group'])){
+
+
+
}
}
-
- $ret[] = array( 'id' => 0, 'name' => 'EVERYONE');
- $ret[] = array( 'id' => -1, 'name' => 'NOT_IN_GROUP');
- return array_merge($ret, $ar);
+
+ if(!empty($req['_add_everyone'])){
+ $ret[] = array( 'id' => 0, 'name' => 'EVERYONE');
+ $ret[] = array( 'id' => -1, 'name' => 'NOT_IN_GROUP');
+ $ar = array_merge($ret, $ar);
+ }
+
+
}
}