We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c4be4e commit bc2f432Copy full SHA for bc2f432
1 file changed
components/ILIAS/MediaObjects/MediaObject/MediaObjectRepository.php
@@ -42,10 +42,14 @@ public function create(
42
\ilMobStakeholder $stakeholder,
43
int $from_mob_id = 0
44
): void {
45
+ $rid = "";
46
if ($from_mob_id > 0) {
47
$from_rid = $this->getRidForMobId($from_mob_id);
- $rid = $this->irss->cloneContainer($from_rid);
48
- } else {
+ if ($from_rid !== "") {
49
+ $rid = $this->irss->cloneContainer($from_rid);
50
+ }
51
52
+ if ($rid === "") {
53
$rid = $this->irss->createContainer(
54
$stakeholder,
55
"mob.zip"
0 commit comments