import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @subpackage Adapter
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Abstract.php 17702 2009-08-20 23:54:16Z yoshida@zend.co.jp $
|
||||
* @version $Id: Abstract.php 19115 2009-11-20 17:41:25Z matthew $
|
||||
*/
|
||||
|
||||
|
||||
@ -173,10 +173,10 @@ abstract class Zend_Db_Adapter_Abstract
|
||||
$config = $config->toArray();
|
||||
} else {
|
||||
/**
|
||||
* @see Zend_Db_Exception
|
||||
* @see Zend_Db_Adapter_Exception
|
||||
*/
|
||||
require_once 'Zend/Db/Exception.php';
|
||||
throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object');
|
||||
require_once 'Zend/Db/Adapter/Exception.php';
|
||||
throw new Zend_Db_Adapter_Exception('Adapter parameters must be in an array or a Zend_Config object');
|
||||
}
|
||||
}
|
||||
|
||||
@ -902,7 +902,7 @@ abstract class Zend_Db_Adapter_Abstract
|
||||
return str_replace('?', $this->quote($value, $type), $text);
|
||||
} else {
|
||||
while ($count > 0) {
|
||||
if (strpos($text, '?') != false) {
|
||||
if (strpos($text, '?') !== false) {
|
||||
$text = substr_replace($text, $this->quote($value, $type), strpos($text, '?'), 1);
|
||||
}
|
||||
--$count;
|
||||
|
Reference in New Issue
Block a user