summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'import.herds.php')
-rw-r--r--import.herds.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/import.herds.php b/import.herds.php
index 9f06f2c..dc70ea2 100644
--- a/import.herds.php
+++ b/import.herds.php
@@ -1,9 +1,12 @@
<?
require_once 'header.php';
- require_once 'class.portage.tree.php';
- $tree = new PortageTree();
+ if(!$tree) {
+ require_once 'class.portage.tree.php';
+ $tree = new PortageTree();
+ }
+
$table = 'herd';
$arr = $tree->getHerds();