Fixed ACL export 2.0.0
authorMarcel Werk <burntime@woltlab.com>
Thu, 12 Dec 2013 02:44:19 +0000 (03:44 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 12 Dec 2013 02:44:19 +0000 (03:44 +0100)
files/lib/system/exporter/WBB3xExporter.class.php

index a53aee7085628e9f034067f79107b225c72d182e..3f9d4aae7d92d32676836efa6304fae02b2a057c 100644 (file)
@@ -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));
                                }
                        }