| @@ 177-184 (lines=8) @@ | ||
| 174 | $letter_cats = ''; |
|
| 175 | //$cat_arr = isset($_REQUEST["letter_cats"]) ? $_REQUEST["letter_cats"] : ""; |
|
| 176 | $cats_arr = XoopsRequest::getArray('letter_cats', []); |
|
| 177 | if (count($cats_arr) > 0) { |
|
| 178 | foreach ($cats_arr as $cat) { |
|
| 179 | $letter_cats .= $cat . '|'; |
|
| 180 | } |
|
| 181 | $letter_cats = substr($letter_cats, 0, -1); |
|
| 182 | } else { |
|
| 183 | $letter_cats = $cats_arr; |
|
| 184 | } |
|
| 185 | //no cat |
|
| 186 | if ($letter_cats == false) { |
|
| 187 | $form = $letterObj->getForm(); |
|
| @@ 443-450 (lines=8) @@ | ||
| 440 | $letter_cats = ''; |
|
| 441 | //$cat_arr = isset($_REQUEST["letter_cats"]) ? $_REQUEST["letter_cats"] : ""; |
|
| 442 | $cat_arr = XoopsRequest::getArray('letter_cats', []); |
|
| 443 | if (count($cat_arr) > 0) { |
|
| 444 | foreach ($cat_arr as $cat) { |
|
| 445 | $letter_cats .= $cat . '|'; |
|
| 446 | } |
|
| 447 | $letter_cats = substr($letter_cats, 0, -1); |
|
| 448 | } else { |
|
| 449 | $letter_cats = $cat_arr; |
|
| 450 | } |
|
| 451 | //no cat |
|
| 452 | if ($letter_cats == false) { |
|
| 453 | $form = $letterObj->getForm(); |
|