mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-28 01:05:25 -04:00
don't mangle non-arrays
This commit is contained in:
parent
47deaeb7ca
commit
b54308a77e
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ class Database extends AbstractData
|
||||||
$statement->fetch(PDO::FETCH_ASSOC) :
|
$statement->fetch(PDO::FETCH_ASSOC) :
|
||||||
$statement->fetchAll(PDO::FETCH_ASSOC);
|
$statement->fetchAll(PDO::FETCH_ASSOC);
|
||||||
$statement->closeCursor();
|
$statement->closeCursor();
|
||||||
if (self::$_type === 'oci') {
|
if (self::$_type === 'oci' && is_array($result)) {
|
||||||
// returned column names are all upper case, convert these back
|
// returned column names are all upper case, convert these back
|
||||||
// returned CLOB values are streams, convert these into strings
|
// returned CLOB values are streams, convert these into strings
|
||||||
$result = array_combine(
|
$result = array_combine(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue