Skip to content

Commit bc2f432

Browse files
committed
46276: Failed test: Begriff kopieren
1 parent 8c4be4e commit bc2f432

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

components/ILIAS/MediaObjects/MediaObject/MediaObjectRepository.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,14 @@ public function create(
4242
\ilMobStakeholder $stakeholder,
4343
int $from_mob_id = 0
4444
): void {
45+
$rid = "";
4546
if ($from_mob_id > 0) {
4647
$from_rid = $this->getRidForMobId($from_mob_id);
47-
$rid = $this->irss->cloneContainer($from_rid);
48-
} else {
48+
if ($from_rid !== "") {
49+
$rid = $this->irss->cloneContainer($from_rid);
50+
}
51+
}
52+
if ($rid === "") {
4953
$rid = $this->irss->createContainer(
5054
$stakeholder,
5155
"mob.zip"

0 commit comments

Comments
 (0)