#131 Array to string conversion notice in adodb-exceptions.inc.php

v5.19
open
nobody
None
5
2014-05-20
2014-05-17
Spearhead
No

I get this error in
Notice on line 34 in file adodb/adodb-exceptions.inc.php: Array to string conversion

The array in this case is
array(2) {
[0] =>
string(48) "INSERT INTO binaries_379 ("binaryID") VALUES (?)"
[1] =>
class PDOStatement#10190 (1) {
public $queryString =>
string(48) "INSERT INTO binaries_379 ("binaryID") VALUES (?)"
}
}

I changed the line 34 to and that seems to fix it:

$this->sql = is_array($p1)? $p1[0] : $p1;

Discussion

  • Spearhead
    Spearhead
    2014-05-17

    make that
    $p1=$this->sql = is_array($p1)? $p1[0] : $p1;

     
  • dregad
    dregad
    2014-05-20

    Thanks, I fixed it.
    In the future, please report issues on Github.