projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28ac765
)
GroupCountries.php
author
Chris
<chris@roojs.com>
Wed, 19 Mar 2014 05:13:03 +0000
(13:13 +0800)
committer
Chris
<chris@roojs.com>
Wed, 19 Mar 2014 05:13:03 +0000
(13:13 +0800)
GroupCountries.php
patch
|
blob
|
history
diff --git
a/GroupCountries.php
b/GroupCountries.php
index
1b9e16f
..
150a65b
100644
(file)
--- a/
GroupCountries.php
+++ b/
GroupCountries.php
@@
-60,6
+60,20
@@
class Pman_Core_GroupCountries extends Pman
function supPersonToCountry($users)
{
+ foreach($users as $id){
+ $p = DB_DataObject::factory('Person');
+ if(!$p->get($id)){
+ $this->jerr('This Person is not exsiting');
+ }
+ $c = explode(',', $p->countries);
+ if(($key = array_search($_REQUEST['country'], $c)) !== false) {
+ unset($c[$key]);
+ }
+ ksort($c);
+ print_r($c);
+// $p->countries = implode(',', $c);
+// $p->update();
+ }
}