Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix csv

  • Loading branch information...
commit 86ff6fef3d40cdac4da40a367ff377e2d1918a22 1 parent 572b25f
WR authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  php/Adapter/CSV.php
View
2  php/Adapter/CSV.php
@@ -40,7 +40,7 @@ protected function opAdd($ins)
#Preserve column order!
foreach($this->cols as $k => $c)
{
- if(!$c['manual'] and $k != $this->primary_key)
+ if(!$c['manual'] and $k != $this->primary_key[0])
{
$new_row[$k] = isset($ins[$k]) ? $ins[$k] : null;
}
Please sign in to comment.
Something went wrong with that request. Please try again.