| @@ 208-211 (lines=4) @@ | ||
| 205 | $post_update2[] = $pid; |
|
| 206 | } |
|
| 207 | } |
|
| 208 | if (count($post_update)) { |
|
| 209 | $criteria = new Criteria('post_id', '(' . implode(',', $post_update) . ')', 'IN'); |
|
| 210 | $postHandler->updateAll('pid', $post_id, $criteria, true); |
|
| 211 | } |
|
| 212 | } |
|
| 213 | ||
| 214 | $forum_id = $postObject->getVar('forum_id'); |
|
| @@ 131-137 (lines=7) @@ | ||
| 128 | // Create criteria for getting only the permissions regarding this module and this user's groups |
|
| 129 | $criteria = new CriteriaCompo(new Criteria('gperm_modid', $modid)); |
|
| 130 | $criteria->add(new Criteria('gperm_groupid', '(' . implode(',', $groups) . ')', 'IN')); |
|
| 131 | if ($id) { |
|
| 132 | if (is_array($id)) { |
|
| 133 | $criteria->add(new Criteria('gperm_itemid', '(' . implode(',', $id) . ')', 'IN')); |
|
| 134 | } else { |
|
| 135 | $criteria->add(new Criteria('gperm_itemid', (int)$id)); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | $gperm_names = implode(', ', $this->getValidItems($modid, $id)); |
|
| 139 | ||
| 140 | // Add criteria for gpermnames |
|