diff options
author | Silvio <s1lv10@uol.com.br> | 2010-08-11 17:49:20 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2010-08-11 17:49:20 -0300 |
commit | 38f4cfb1cdbf7359bb6818167ac3d7ec0d3268f7 (patch) | |
tree | e714c96385ad687ac6fcd355eec98d0335d3a16f /lib | |
parent | a22fa724cdb1dab396b43b2b1666bbef1f048baf (diff) | |
download | sf_isis_importer_plugin-38f4cfb1cdbf7359bb6818167ac3d7ec0d3268f7.tar.gz sf_isis_importer_plugin-38f4cfb1cdbf7359bb6818167ac3d7ec0d3268f7.tar.bz2 |
Minor fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sfIsisImporter.class.php | 2 | ||||
-rw-r--r-- | lib/sfIsisImporterStats.class.php | 5 |
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]++; } |