summaryrefslogtreecommitdiffstats
path: root/lib/private/db/statementwrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/db/statementwrapper.php')
-rw-r--r--lib/private/db/statementwrapper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/db/statementwrapper.php b/lib/private/db/statementwrapper.php
index 93fabc147ca..ad63de98e93 100644
--- a/lib/private/db/statementwrapper.php
+++ b/lib/private/db/statementwrapper.php
@@ -89,9 +89,10 @@ class OC_DB_StatementWrapper {
$cArg = 0;
$inSubstring = false;
+ $queryLength = strlen($query);
// Create new query
- for ($i = 0; $i < strlen ($query); $i++) {
+ for ($i = 0; $i < $queryLength; $i++) {
if ($inSubstring == false) {
// Defines when we should start inserting values
if (substr ($query, $i, 9) == 'SUBSTRING') {