Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-27 15:13:49 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-07-04 18:13:39 +0400
commitdbb2457d813a51e636c491eb53570cc77293ff20 (patch)
tree67063ea41d8bc5e275b46373b5c3acd50ffc1945 /lib/db.php
parent1ed103f65082efb69bb9190e015d34b6d6efc785 (diff)
one if less
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/db.php b/lib/db.php
index 3112edb4d43..859ca02c445 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -325,6 +325,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!
@@ -390,11 +391,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" );