From: Marcel Werk Date: Thu, 12 Dec 2013 02:44:19 +0000 (+0100) Subject: Fixed ACL export X-Git-Tag: 2.0.0^0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db4a6999fcf2aff0a27b974dc7dba5dc3f3b6ae5;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fixed ACL export --- diff --git a/files/lib/system/exporter/WBB3xExporter.class.php b/files/lib/system/exporter/WBB3xExporter.class.php index a53aee7..3f9d4aa 100644 --- a/files/lib/system/exporter/WBB3xExporter.class.php +++ b/files/lib/system/exporter/WBB3xExporter.class.php @@ -1525,6 +1525,8 @@ class WBB3xExporter extends AbstractExporter { unset($row['boardID'], $row['groupID']); foreach ($row as $permission => $value) { + if ($value == -1) continue; + ImportHandler::getInstance()->getImporter('com.woltlab.wbb.acl')->import(0, array_merge($data, array('optionValue' => $value)), array('optionName' => $permission)); } } @@ -1551,6 +1553,8 @@ class WBB3xExporter extends AbstractExporter { unset($row['boardID'], $row['userID']); foreach ($row as $permission => $value) { + if ($value == -1) continue; + ImportHandler::getInstance()->getImporter('com.woltlab.wbb.acl')->import(0, array_merge($data, array('optionValue' => $value)), array('optionName' => $permission)); } }