Procházet zdrojové kódy

don't mangle non-arrays

El RIDO před 4 roky
rodič
revize
b54308a77e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/Data/Database.php

+ 1 - 1
lib/Data/Database.php

@@ -582,7 +582,7 @@ class Database extends AbstractData
             $statement->fetch(PDO::FETCH_ASSOC) :
             $statement->fetchAll(PDO::FETCH_ASSOC);
         $statement->closeCursor();
-        if (self::$_type === 'oci') {
+        if (self::$_type === 'oci' && is_array($result)) {
             // returned column names are all upper case, convert these back
             // returned CLOB values are streams, convert these into strings
             $result = array_combine(