fix changed field comparison
authorChuck Hagenbuch <chuck@horde.org>
Wed, 25 Feb 2009 05:39:38 +0000 (00:39 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 25 Feb 2009 05:39:38 +0000 (00:39 -0500)
framework/Rdo/lib/Horde/Rdo/Mapper.php

index 942d530..500839f 100644 (file)
@@ -383,7 +383,7 @@ abstract class Horde_Rdo_Mapper implements Countable
         }
 
         // Filter out any extra fields.
-        $fields = array_intersect_key($fields, $this->tableDefinition->getColumnNames());
+        $fields = array_intersect_key($fields, array_flip($this->tableDefinition->getColumnNames()));
 
         if (!$fields) {
             // Nothing to change.