Skip to content

Commit

Permalink
Resolve PHP warning
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jan 8, 2025
1 parent d15e998 commit 7b40613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/importexport/users/filter/PKPUserUserXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ public function addUserGroups($doc, $rootNode)
$exportFilter = array_shift($userGroupExportFilters);
$exportFilter->setDeployment($this->getDeployment());

$userGroupsDoc = $exportFilter->execute($userGroups->all());
$userGroupsArray = $userGroups->all();
$userGroupsDoc = $exportFilter->execute($userGroupsArray);
if ($userGroupsDoc->documentElement instanceof \DOMElement) {
$clone = $doc->importNode($userGroupsDoc->documentElement, true);
$rootNode->appendChild($clone);
Expand Down

0 comments on commit 7b40613

Please sign in to comment.