aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sfIsisImporter.class.php2
-rw-r--r--lib/sfIsisImporterStats.class.php5
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/sfIsisImporter.class.php b/lib/sfIsisImporter.class.php
index 1a8cbba..9656cf9 100644
--- a/lib/sfIsisImporter.class.php
+++ b/lib/sfIsisImporter.class.php
@@ -337,7 +337,7 @@ class sfIsisImporter extends IsisConnector
$data->save();
$key = sfInflector::underscore($relation) .'_id';
- $model->$key = $relation->id;
+ $model->$key = $data->id;
}
}
diff --git a/lib/sfIsisImporterStats.class.php b/lib/sfIsisImporterStats.class.php
index 54789ab..db5c316 100644
--- a/lib/sfIsisImporterStats.class.php
+++ b/lib/sfIsisImporterStats.class.php
@@ -37,6 +37,11 @@ class sfIsisImporterStats
*/
public function increase($section)
{
+ if (!isset($this->stats[$section]))
+ {
+ $this->stats[$section] = 0;
+ }
+
$this->stats[$section]++;
}