@@ 280-286 (lines=7) @@ | ||
277 | continue; |
|
278 | } |
|
279 | // get categories |
|
280 | foreach ($letter_cat_ids as $letter_cat_id) { |
|
281 | $catObj = $helper->getHandler('Cat')->get($letter_cat_id); |
|
282 | if ($grouppermHandler->checkRight('newsletter_read_cat', $catObj->getVar('cat_id'), $groups, $helper->getModule()->mid())) { |
|
283 | $letter_filter[] = $letterObj->getVar('letter_id'); |
|
284 | } |
|
285 | unset($catObj); |
|
286 | } |
|
287 | } |
|
288 | } |
|
289 | } |
|
@@ 330-336 (lines=7) @@ | ||
327 | } |
|
328 | // get categories |
|
329 | unset($letter_array['letter_cats']); // IN PROGRESS |
|
330 | foreach ($letter_cat_ids as $letter_cat_id) { |
|
331 | $catObj = $helper->getHandler('Cat')->get($letter_cat_id); |
|
332 | if ($grouppermHandler->checkRight('newsletter_read_cat', $catObj->getVar('cat_id'), $groups, $helper->getModule()->mid())) { |
|
333 | $letter_array['letter_cats'][] = $catObj->toArray(); |
|
334 | } |
|
335 | unset($catObj); |
|
336 | } |
|
337 | // count letter attachements |
|
338 | $attachmentCriteria = new \CriteriaCompo(); |
|
339 | $attachmentCriteria->add(new \Criteria('attachment_letter_id', $letterObj->getVar('letter_id'))); |