summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/ActiveRecord/Vendor/TDbMetaData.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Vendor/TDbMetaData.php b/framework/Data/ActiveRecord/Vendor/TDbMetaData.php
index 37537548..8ca65c01 100644
--- a/framework/Data/ActiveRecord/Vendor/TDbMetaData.php
+++ b/framework/Data/ActiveRecord/Vendor/TDbMetaData.php
@@ -195,7 +195,7 @@ abstract class TDbMetaData extends TComponent
if(!is_array($values)) $values = array($values);
foreach($keys as $i => $key)
{
- $value = isset($values[$i]) ? $values[$i] : $values[$key];
+ $value = array_key_exists($i,$values) ? $values[$i] : $values[$key];
$this->bindValue($command, ':'.$key, $value);
}
$command->prepare();