summaryrefslogtreecommitdiff
path: root/adodb-active-record.inc.php
diff options
context:
space:
mode:
authorAlexandre Pachot <alexandre@planitou.ca>2019-05-07 16:13:35 -0400
committerDamien Regad <dregad@mantisbt.org>2019-05-08 15:01:03 +0200
commit5c619ce74b9ec57120ee868d313088f72ec653ac (patch)
tree8dd4dcf6b5a6f448a430131da14ce697d70ebfe5 /adodb-active-record.inc.php
parentd644e4f8d51e49944d0ae737a726e38d748d6566 (diff)
downloadadodb-5c619ce74b9ec57120ee868d313088f72ec653ac.tar.gz
adodb-5c619ce74b9ec57120ee868d313088f72ec653ac.tar.bz2
adodb-5c619ce74b9ec57120ee868d313088f72ec653ac.zip
Fix Active Record field names case
When I have a class extending ADODB_Active_Record, I have only lowercase field names instead native-case field names. When the value of ADODB_ASSOC_CASE is 2, the value of $ADODB_ASSOC_CASE is NULL, so we are going to the case 0 of the switch! Signed-off-by: Damien Regad <dregad@mantisbt.org> This is the original code from PR #535, which only addresses part of the problem. the rest will be fixed in a subsequent commit. Issue #536
Diffstat (limited to 'adodb-active-record.inc.php')
-rw-r--r--adodb-active-record.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb-active-record.inc.php b/adodb-active-record.inc.php
index bbba78dc..13ce8c2a 100644
--- a/adodb-active-record.inc.php
+++ b/adodb-active-record.inc.php
@@ -463,7 +463,7 @@ class ADODB_Active_Record {
$attr = array();
$keys = array();
- switch($ADODB_ASSOC_CASE) {
+ switch (ADODB_ASSOC_CASE) {
case 0:
foreach($cols as $name => $fldobj) {
$name = strtolower($name);