fixing the fix: sql strings (integer

index) were not used in the where clause on update/insert, causing eg. double entries for file-attachments
This commit is contained in:
Ralf Becker 2006-01-06 04:52:10 +00:00
parent 1f3f5651ee
commit d0b013767b

View File

@ -1154,7 +1154,7 @@
$keys = $values = array();
foreach($array as $key => $data)
{
if (is_int($key) && $only === false || !$only || $only === True && isset($column_definitions[$key]) ||
if (is_int($key) || !$only || $only === True && isset($column_definitions[$key]) ||
is_array($only) && in_array($key,$only))
{
$keys[] = $this->name_quote($key);