X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fcsvimporter.php;h=7d56bc803e794b59dc65fb721c2d2c1246110ca1;hb=3c7bc7a377e3d5422f61b92ddf69c4a953ad3d15;hp=34c6c082bcc01e66dc8cd727af1e08bf93ce3bae;hpb=e8ddc3f28701273de2b5c0f822146ab2a39dea91;p=platal.git diff --git a/classes/csvimporter.php b/classes/csvimporter.php index 34c6c08..7d56bc8 100644 --- a/classes/csvimporter.php +++ b/classes/csvimporter.php @@ -1,6 +1,6 @@ $ref) { - $ops[$key] = $this->getValue($line, $ops, $key, $ref); + $ops[$key] = $this->getValue($line, $key, $ref, $relation); } return $ops; } @@ -92,7 +92,7 @@ class CSVImporter { $ops = array(); foreach ($relation as $key=>$ref) { - $value = $this->getValue($line, $ops, $key, $ref); + $value = $this->getValue($line, $key, $ref, $relation); if (!is_null($value) && $value != 'NULL') { $value = "'" . addslashes($value) . "'"; }