| @@ 297-308 (lines=12) @@ | ||
| 294 | } |
|
| 295 | ||
| 296 | // Add attachment. |
|
| 297 | if (isset($attachmentArray) && !empty($attachmentArray)) { |
|
| 298 | $counter = 0; |
|
| 299 | foreach ($attachmentArray as $attachmentItem) { |
|
| 300 | $this->addAttachment( |
|
| 301 | $id, |
|
| 302 | $attachmentItem, |
|
| 303 | $attachmentCommentList[$counter], |
|
| 304 | $this->course |
|
| 305 | ); |
|
| 306 | $counter++; |
|
| 307 | } |
|
| 308 | } |
|
| 309 | } |
|
| 310 | break; |
|
| 311 | case 'admin': |
|
| @@ 788-800 (lines=13) @@ | ||
| 785 | } |
|
| 786 | ||
| 787 | // Add attachment. |
|
| 788 | if (isset($attachmentArray) && !empty($attachmentArray)) { |
|
| 789 | $counter = 0; |
|
| 790 | foreach ($attachmentArray as $attachmentItem) { |
|
| 791 | $this->updateAttachment( |
|
| 792 | $attachmentItem['id'], |
|
| 793 | $id, |
|
| 794 | $attachmentItem, |
|
| 795 | $attachmentCommentList[$counter], |
|
| 796 | $this->course |
|
| 797 | ); |
|
| 798 | $counter++; |
|
| 799 | } |
|
| 800 | } |
|
| 801 | } |
|
| 802 | break; |
|
| 803 | case 'admin': |
|