Skip to content
This repository was archived by the owner on May 16, 2018. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed bug in quoteInto with $count parameter and question sign in $value
  • Loading branch information
ivan-ponomarev committed Nov 14, 2014
commit f8b0e58a072f95f4db4734b8a45b648e5ba44e61
2 changes: 1 addition & 1 deletion library/Zend/Db/Adapter/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ public function quoteInto($text, $value, $type = null, $count = null)
if ($count === null) {
return str_replace('?', $this->quote($value, $type), $text);
} else {
return implode($this->quote($value, $type), explode('?', $text, $count));
return implode($this->quote($value, $type), explode('?', $text, $count + 1));
}
}

Expand Down