diff options
| author | Mark Newnham <mark@newnhams.com> | 2021-07-07 20:40:34 -0600 |
|---|---|---|
| committer | Mark Newnham <mark@newnhams.com> | 2021-07-07 20:40:34 -0600 |
| commit | 5ead2c7c9c0c9002cf739607d055788e5817a2ad (patch) | |
| tree | 6d0c449f4fa103b8f505873468c9410d2075687e /adodb-lib.inc.php | |
| parent | c4aadf417b7f2d985e01cead3ca70db07734bb7f (diff) | |
| download | adodb-5ead2c7c9c0c9002cf739607d055788e5817a2ad.tar.gz adodb-5ead2c7c9c0c9002cf739607d055788e5817a2ad.tar.bz2 adodb-5ead2c7c9c0c9002cf739607d055788e5817a2ad.zip | |
array to string conversion in adodb_debug_execute, see #737
Diffstat (limited to 'adodb-lib.inc.php')
| -rw-r--r-- | adodb-lib.inc.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/adodb-lib.inc.php b/adodb-lib.inc.php index 3a465d59..fcfd7621 100644 --- a/adodb-lib.inc.php +++ b/adodb-lib.inc.php @@ -1152,8 +1152,16 @@ function _adodb_debug_execute(&$zthis, $sql, $inputarr) foreach($inputarr as $kk=>$vv) { if (is_string($vv) && strlen($vv)>64) $vv = substr($vv,0,64).'...'; if (is_null($vv)) $ss .= "($kk=>null) "; - else $ss .= "($kk=>'$vv') "; + else + { + if (is_array($vv)) + { + $vv = sprintf("Array Of Values: [%s]", implode(',',$vv)); + } + $ss .= "($kk=>'$vv') "; + } } + $ss = "[ $ss ]"; } $sqlTxt = is_array($sql) ? $sql[0] : $sql; |
