diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-27 13:13:49 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-27 13:13:49 +0200 |
commit | 45c897acf34151672d68ee767ff15ab010676335 (patch) | |
tree | 9c56187a57214a8b0747f4bd318decf5554bb274 | |
parent | 1b97c186b4f2946753123fb73314597b818aea70 (diff) | |
download | nextcloud-server-45c897acf34151672d68ee767ff15ab010676335.tar.gz nextcloud-server-45c897acf34151672d68ee767ff15ab010676335.zip |
one if less
-rw-r--r-- | lib/db.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/db.php b/lib/db.php index 984c2bcf149..fecc622d963 100644 --- a/lib/db.php +++ b/lib/db.php @@ -326,6 +326,7 @@ class OC_DB { * @param string $query Query string * @param int $limit * @param int $offset + * @param bool $isManipulation * @return MDB2_Statement_Common prepared SQL query * * SQL query via MDB2 prepare(), needs to be execute()'d! @@ -393,11 +394,7 @@ class OC_DB { throw new DatabaseException($e->getMessage(), $query); } // differentiate between query and manipulation - if ($isManipulation) { - $result=new PDOStatementWrapper($result, true); - } else { - $result=new PDOStatementWrapper($result, false); - } + $result = new PDOStatementWrapper($result, $isManipulation); } if ((is_null($limit) || $limit == -1) and self::$cachingEnabled ) { $type = OC_Config::getValue( "dbtype", "sqlite" ); |