Bläddra i källkod

Fixed bug in quoteInto with $count parameter and question sign in $value

Ivan A. Ponomarev 11 år sedan
förälder
incheckning
f8b0e58a07
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      library/Zend/Db/Adapter/Abstract.php

+ 1 - 1
library/Zend/Db/Adapter/Abstract.php

@@ -930,7 +930,7 @@ abstract class Zend_Db_Adapter_Abstract
         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));
         }
     }