diff options
author | xue <> | 2007-04-08 18:40:22 +0000 |
---|---|---|
committer | xue <> | 2007-04-08 18:40:22 +0000 |
commit | 773bf1d0299246d936dcad2ac2ca01bca9d64ca4 (patch) | |
tree | 66e73a0bed4c7f484e392ad3bb3179863a559a00 /framework | |
parent | 39446f979b52dd0acd75d5d243f352397a0410f6 (diff) |
Fixed a bug when a parameter is null.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Data/ActiveRecord/Vendor/TDbMetaData.php | 2 |
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();
|