diff options
| author | Damien Regad <dregad@mantisbt.org> | 2022-06-09 16:51:47 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2022-06-09 16:51:47 +0200 |
| commit | 996d27ad7ee5b7a80fb1a3ad7732064a1e17e9fe (patch) | |
| tree | cbbafc1e0725e2b8876b10e4e42643b0bf519c32 /adodb-active-record.inc.php | |
| parent | 47ea492568d236172c6ba5075753d0ad49046cd0 (diff) | |
| download | adodb-996d27ad7ee5b7a80fb1a3ad7732064a1e17e9fe.tar.gz adodb-996d27ad7ee5b7a80fb1a3ad7732064a1e17e9fe.tar.bz2 adodb-996d27ad7ee5b7a80fb1a3ad7732064a1e17e9fe.zip | |
Fix Active Record changing case of properties
With ADODB_ASSOC_CASE and ADODB_QUOTE_FIELDNAMES in Native mode, active
record class properties were converted to uppercase.
Problem was introduced by commit 7b0d040355753aa95e6068b54bbaf3014f8da3e8
(see #610).
Fixes #837
Diffstat (limited to 'adodb-active-record.inc.php')
| -rw-r--r-- | adodb-active-record.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/adodb-active-record.inc.php b/adodb-active-record.inc.php index ad40640a..5fbe7b90 100644 --- a/adodb-active-record.inc.php +++ b/adodb-active-record.inc.php @@ -501,7 +501,8 @@ class ADODB_Active_Record { } break; default: - foreach($cols as $name => $fldobj) { + foreach($cols as $fldobj) { + $name = $fldobj->name; if ($ADODB_ACTIVE_DEFVALS && isset($fldobj->default_value)) { $this->$name = $fldobj->default_value; |
