Skip to content

Commit

Permalink
Merge pull request ILIAS-eLearning#7866 from schmitz-ilias/empty-expo…
Browse files Browse the repository at this point in the history
…rt-files

Export: do not export tail dependencies if there are not entities
  • Loading branch information
smeyer-ilias authored Oct 30, 2024
2 parents 1589b83 + 4b22ca0 commit 366bc72
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Services/Export/classes/class.ilExport.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -17,6 +15,9 @@
* https://github.com/ILIAS-eLearning
*
*********************************************************************/

declare(strict_types=1);

/**
* Export
* @author Alex Killing <[email protected]>
Expand Down Expand Up @@ -602,6 +603,10 @@ public function processExporter(
$this->log->debug("process tail dependencies of " . $a_entity);
$sequence = $exp->getXmlExportTailDependencies($a_entity, $a_target_release, $a_id);
foreach ($sequence as $s) {
if (empty((array) ($s["ids"] ?? []))) {
continue;
}

$comp = explode("/", $s["component"]);
$exp_class = "il" . $comp[1] . "Exporter";
$s = $this->processExporter(
Expand Down

0 comments on commit 366bc72

Please sign in to comment.