@@ 36-49 (lines=14) @@ | ||
33 | $en = 1; |
|
34 | $fr = 0; |
|
35 | } |
|
36 | if ($obj[0]->deptsEn!=$listEn){ |
|
37 | $enList = get_entity($obj[0]->guid); |
|
38 | $meta = elgg_get_metadata(array( |
|
39 | 'metadata_name' => 'deptsEn', |
|
40 | )); |
|
41 | if($meta){ |
|
42 | foreach ($meta as $x){ |
|
43 | $x->delete(); |
|
44 | } |
|
45 | } |
|
46 | $enList->set('deptsEn',$listEn);// = "test"; |
|
47 | $enList->save(); |
|
48 | ||
49 | } |
|
50 | if ($obj[0]->deptsFr!=$listFr){ |
|
51 | $frList = get_entity($obj[0]->guid); |
|
52 | $meta = elgg_get_metadata(array( |
|
@@ 50-63 (lines=14) @@ | ||
47 | $enList->save(); |
|
48 | ||
49 | } |
|
50 | if ($obj[0]->deptsFr!=$listFr){ |
|
51 | $frList = get_entity($obj[0]->guid); |
|
52 | $meta = elgg_get_metadata(array( |
|
53 | 'metadata_name' => 'deptsFr', |
|
54 | )); |
|
55 | if($meta){ |
|
56 | foreach ($meta as $x){ |
|
57 | $x->delete(); |
|
58 | } |
|
59 | } |
|
60 | $frList->set('deptsFr',$listFr);// = "test"; |
|
61 | $frList->save(); |
|
62 | ||
63 | } |
|
64 | } |
|
65 | //echo $obj[0]->description; |
|
66 |