@@ 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'); |
@@ 134-140 (lines=7) @@ | ||
131 | // Create criteria for getting only the permissions regarding this module and this user's groups |
|
132 | $criteria = new CriteriaCompo(new Criteria('gperm_modid', $modid)); |
|
133 | $criteria->add(new Criteria('gperm_groupid', '(' . implode(',', $groups) . ')', 'IN')); |
|
134 | if ($id) { |
|
135 | if (is_array($id)) { |
|
136 | $criteria->add(new Criteria('gperm_itemid', '(' . implode(',', $id) . ')', 'IN')); |
|
137 | } else { |
|
138 | $criteria->add(new Criteria('gperm_itemid', (int)$id)); |
|
139 | } |
|
140 | } |
|
141 | $gperm_names = implode(', ', $this->getValidItems($modid, $id)); |
|
142 | ||
143 | // Add criteria for gpermnames |