Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit f8b0e58

Browse files
Fixed bug in quoteInto with $count parameter and question sign in $value
1 parent 7a4aa64 commit f8b0e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Db/Adapter/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ public function quoteInto($text, $value, $type = null, $count = null)
930930
if ($count === null) {
931931
return str_replace('?', $this->quote($value, $type), $text);
932932
} else {
933-
return implode($this->quote($value, $type), explode('?', $text, $count));
933+
return implode($this->quote($value, $type), explode('?', $text, $count + 1));
934934
}
935935
}
936936

0 commit comments

Comments
 (0)